diff options
Diffstat (limited to 'src/chown.c')
-rw-r--r-- | src/chown.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/chown.c b/src/chown.c index 22bd4f1a9..9d5a424e3 100644 --- a/src/chown.c +++ b/src/chown.c @@ -47,6 +47,7 @@ #include <getopt.h> #include "system.h" #include "version.h" +#include "safe-lstat.h" #ifndef _POSIX_VERSION struct passwd *getpwnam (); @@ -59,7 +60,6 @@ struct group *getgrgid (); #define endpwent() #endif -int lstat (); char *savedir (); char *parse_user_spec (); char *xmalloc (); @@ -189,7 +189,7 @@ change_file_owner (file, user, group) gid_t newgroup; int errors = 0; - if (lstat (file, &file_stats)) + if (SAFE_LSTAT (file, &file_stats)) { if (force_silent == 0) error (0, errno, "%s", file); |