summaryrefslogtreecommitdiff
path: root/src/chown.c
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>1994-07-30 16:10:22 +0000
committerJim Meyering <jim@meyering.net>1994-07-30 16:10:22 +0000
commit2c4f4e60d877b3498a7fcc4c05051ef720892611 (patch)
tree6a2277b0ac37188c179161989df2a8f25102b47a /src/chown.c
parent2399435ba4e29bd1fb10efc382532ad45d00a1f7 (diff)
downloadcoreutils-2c4f4e60d877b3498a7fcc4c05051ef720892611.tar.xz
.
Diffstat (limited to 'src/chown.c')
-rw-r--r--src/chown.c4
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);