summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/cp.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/cp.c b/src/cp.c
index eb6628be4..7dd2ddf8c 100644
--- a/src/cp.c
+++ b/src/cp.c
@@ -36,6 +36,10 @@
uid_t geteuid ();
#endif
+#ifdef HAVE_LCHOWN
+# define chown(PATH, OWNER, GROUP) lchown(PATH, OWNER, GROUP)
+#endif
+
/* Used by do_copy, make_path_private, and re_protect
to keep a list of leading directories whose protections
need to be fixed after copying. */