A slight simplification to the no-implied-dirs change.
[rsync/rsync.git] / syscall.c
index f34774c..d093aae 100644 (file)
--- a/syscall.c
+++ b/syscall.c
@@ -72,6 +72,9 @@ int do_lchown(const char *path, uid_t owner, gid_t group)
 {
        if (dry_run) return 0;
        RETURN_ERROR_IF_RO_OR_LO;
+#ifndef HAVE_LCHOWN
+#define lchown chown
+#endif
        return lchown(path, owner, group);
 }