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

index cac9383d58b5f506b6db90e06003a6fba34fdb21..a7d952be62551e22d351ecb158b8f72233312040 100644 (file)
@@ -35,6 +35,7 @@
 #include <getopt.h>
 #include "system.h"
 #include "version.h"
+#include "safe-lstat.h"
 
 #if !defined (isascii) || defined (STDC_HEADERS)
 #undef isascii
@@ -51,8 +52,6 @@ struct group *getgrnam ();
 #define endgrent()
 #endif
 
-int lstat ();
-
 char *group_member ();
 char *savedir ();
 char *xmalloc ();
@@ -196,7 +195,7 @@ change_file_group (file, group)
   struct stat file_stats;
   int errors = 0;
 
-  if (lstat (file, &file_stats))
+  if (SAFE_LSTAT (file, &file_stats))
     {
       if (force_silent == 0)
        error (0, errno, "%s", file);