summaryrefslogtreecommitdiff
path: root/src/cp.c
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>1996-04-24 03:35:55 +0000
committerJim Meyering <jim@meyering.net>1996-04-24 03:35:55 +0000
commitade410fae0b77c8ee4ca6595ecb9b9b8d2c446eb (patch)
tree80d3235722b82973224c2db78962c6abff5d09a2 /src/cp.c
parent6d668c6160940ae8b0790f15f6df6ad44bd176d4 (diff)
downloadcoreutils-ade410fae0b77c8ee4ca6595ecb9b9b8d2c446eb.tar.xz
[HAVE_LCHOWN]: Define chown to lchown.
Diffstat (limited to 'src/cp.c')
-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. */