summaryrefslogtreecommitdiff
path: root/src/mv.c
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>1996-04-24 03:41:10 +0000
committerJim Meyering <jim@meyering.net>1996-04-24 03:41:10 +0000
commitb380f45a130d604c9ebbad1c451ca4daa7eba5b2 (patch)
tree0198977a83fe882d82e52858f77176f509deacf3 /src/mv.c
parent8e12bada8adbdf910760881904e2f734fe196567 (diff)
downloadcoreutils-b380f45a130d604c9ebbad1c451ca4daa7eba5b2.tar.xz
[HAVE_LCHOWN]: Define chown to lchown.
Diffstat (limited to 'src/mv.c')
-rw-r--r--src/mv.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/mv.c b/src/mv.c
index 92e9fefa4..91f1b1289 100644
--- a/src/mv.c
+++ b/src/mv.c
@@ -50,6 +50,10 @@
#include "backupfile.h"
#include "error.h"
+#ifdef HAVE_LCHOWN
+# define chown(PATH, OWNER, GROUP) lchown(PATH, OWNER, GROUP)
+#endif
+
#ifndef _POSIX_VERSION
uid_t geteuid ();
#endif