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. */