]> git.ipfire.org Git - thirdparty/rsync.git/commitdiff
Fix typo in handling of lchown when the host operating system does
authorPaul Green <paulg@samba.org>
Tue, 18 Jan 2005 21:19:42 +0000 (21:19 +0000)
committerPaul Green <paulg@samba.org>
Tue, 18 Jan 2005 21:19:42 +0000 (21:19 +0000)
not implement it.  It should get mapped to chown.

syscall.c

index f49854719ee9b8677a124880627d8c14e2c3fc02..d093aaecc11d7198c0998b7ed0e23fdab5484d53 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);