Fix typo in handling of lchown when the host operating system does
[rsync/rsync.git] / syscall.c
index f498547..d093aae 100644 (file)
--- a/syscall.c
+++ b/syscall.c
@@ -72,7 +72,7 @@ int do_lchown(const char *path, uid_t owner, gid_t group)
 {
        if (dry_run) return 0;
        RETURN_ERROR_IF_RO_OR_LO;
-#ifdef HAVE_LCHOWN
+#ifndef HAVE_LCHOWN
 #define lchown chown
 #endif
        return lchown(path, owner, group);