diff options
Diffstat (limited to 'src/chmod.c')
-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); |