summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>1996-04-24 03:44:29 +0000
committerJim Meyering <jim@meyering.net>1996-04-24 03:44:29 +0000
commit69e6145e1eb514bee6ab6b3da25bef2823ca0c5e (patch)
tree3aaf8f37448b976b76d2995ff440e952bb3bf69a /src
parentfb19d01b96779aaf0b9632f6deb4bd06965b664d (diff)
downloadcoreutils-69e6145e1eb514bee6ab6b3da25bef2823ca0c5e.tar.xz
[HAVE_LCHOWN]: Define chown to lchown.
Diffstat (limited to 'src')
-rw-r--r--src/chgrp.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/chgrp.c b/src/chgrp.c
index 1181e909e..da0084fa5 100644
--- a/src/chgrp.c
+++ b/src/chgrp.c
@@ -27,6 +27,10 @@
# include <limits.h>
#endif
+#ifdef HAVE_LCHOWN
+# define chown(PATH, OWNER, GROUP) lchown(PATH, OWNER, GROUP)
+#endif
+
#ifndef UINT_MAX
# define UINT_MAX ((unsigned int) ~(unsigned int) 0)
#endif