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 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;
 {
        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);
 #define lchown chown
 #endif
        return lchown(path, owner, group);