]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
.
authorJim Meyering <jim@meyering.net>
Sat, 30 Jul 1994 16:10:22 +0000 (16:10 +0000)
committerJim Meyering <jim@meyering.net>
Sat, 30 Jul 1994 16:10:22 +0000 (16:10 +0000)
src/chown.c

index 22bd4f1a9e30d6ef2ea48e167d69411cb8e8cb85..9d5a424e35cdf2696e75282666cc364d758ade7a 100644 (file)
@@ -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);