summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Green <paulg@samba.org>2005-01-18 21:19:42 +0000
committerPaul Green <paulg@samba.org>2005-01-18 21:19:42 +0000
commit58af2f958cc9d66f09a58f24d4bfc153f63a6846 (patch)
tree680d8da7855d79f5b76b1ab5a3d560d15a25d54d
parenta8fd4161bbb4b67f90ec53f2d718c044c9efab08 (diff)
downloadrsync-58af2f958cc9d66f09a58f24d4bfc153f63a6846.tar.gz
rsync-58af2f958cc9d66f09a58f24d4bfc153f63a6846.tar.bz2
rsync-58af2f958cc9d66f09a58f24d4bfc153f63a6846.zip
Fix typo in handling of lchown when the host operating system does
not implement it. It should get mapped to chown.
-rw-r--r--syscall.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/syscall.c b/syscall.c
index f4985471..d093aaec 100644
--- 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);