summaryrefslogtreecommitdiff
path: root/src/rm.c
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>1994-07-30 16:34:17 +0000
committerJim Meyering <jim@meyering.net>1994-07-30 16:34:17 +0000
commit32bd426778e4d37e233fe06ce66eb72b4a84c883 (patch)
tree81eae5822f0dba853b9116c074fb3a2a55ba8faa /src/rm.c
parenta272d8b0c6e62937ef7b69e3ca750e34fd3e3152 (diff)
downloadcoreutils-32bd426778e4d37e233fe06ce66eb72b4a84c883.tar.xz
.
Diffstat (limited to 'src/rm.c')
-rw-r--r--src/rm.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/rm.c b/src/rm.c
index 1365e6656..438e8fa42 100644
--- a/src/rm.c
+++ b/src/rm.c
@@ -33,6 +33,7 @@
#include <sys/types.h>
#include "system.h"
#include "version.h"
+#include "safe-lstat.h"
#ifdef _POSIX_SOURCE
/* POSIX.1 doesn't have inodes, so fake them to avoid lots of ifdefs. */
@@ -205,7 +206,7 @@ rm ()
return 1;
}
- if (lstat (pathname, &path_stats))
+ if (SAFE_LSTAT (pathname, &path_stats))
{
if (errno == ENOENT && ignore_missing_files)
return 0;