summaryrefslogtreecommitdiff
path: root/src/chgrp.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/chgrp.c')
-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