diff options
author | Jim Meyering <jim@meyering.net> | 1994-07-30 14:17:26 +0000 |
---|---|---|
committer | Jim Meyering <jim@meyering.net> | 1994-07-30 14:17:26 +0000 |
commit | 2399435ba4e29bd1fb10efc382532ad45d00a1f7 (patch) | |
tree | 549cef20da292411aaf9b2e6a0679219c0eb09ee | |
parent | 2ac5b86618055f292ffac3d21c912dc07d4e035d (diff) | |
download | coreutils-2399435ba4e29bd1fb10efc382532ad45d00a1f7.tar.xz |
.
-rw-r--r-- | src/chmod.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/chmod.c b/src/chmod.c index 641f1ecbd..c2d1c879a 100644 --- a/src/chmod.c +++ b/src/chmod.c @@ -40,8 +40,8 @@ #include "modechange.h" #include "system.h" #include "version.h" - -int lstat (); +#include "safe-stat.h" +#include "safe-lstat.h" char *savedir (); char *xmalloc (); @@ -196,7 +196,7 @@ change_file_mode (file, changes, deref_symlink) unsigned short newmode; int errors = 0; - if (lstat (file, &file_stats)) + if (SAFE_LSTAT (file, &file_stats)) { if (force_silent == 0) error (0, errno, "%s", file); @@ -207,7 +207,7 @@ change_file_mode (file, changes, deref_symlink) if (! deref_symlink) return 0; else - if (stat (file, &file_stats)) + if (SAFE_STAT (file, &file_stats)) { if (force_silent == 0) error (0, errno, "%s", file); |