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