summaryrefslogtreecommitdiff
path: root/backup.c
diff options
context:
space:
mode:
authorWayne Davison <wayned@samba.org>2006-11-21 08:35:22 +0000
committerWayne Davison <wayned@samba.org>2006-11-21 08:35:22 +0000
commit1e999f9f1b6940a4b355054b5f15435c3030996c (patch)
treef3520ae13b47cc876096eebab310eb01d8c3b948 /backup.c
parentf9b66bc4641e8b7cd1a9ddfac8319cd9dfaa6ea8 (diff)
downloadrsync-1e999f9f1b6940a4b355054b5f15435c3030996c.tar.gz
The call to do_chmod() needed to be conditional.
Diffstat (limited to 'backup.c')
-rw-r--r--backup.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/backup.c b/backup.c
index 612130bf..85000431 100644
--- a/backup.c
+++ b/backup.c
@@ -132,7 +132,9 @@ static int make_bak_dir(char *fullpath)
full_fname(rel));
} else {
do_lchown(fullpath, st.st_uid, st.st_gid);
+#ifdef HAVE_CHMOD
do_chmod(fullpath, st.st_mode);
+#endif
}
}
*p = '/';