]> git.ipfire.org Git - thirdparty/rsync.git/commitdiff
The call to do_chmod() needed to be conditional.
authorWayne Davison <wayned@samba.org>
Tue, 21 Nov 2006 08:35:22 +0000 (08:35 +0000)
committerWayne Davison <wayned@samba.org>
Tue, 21 Nov 2006 08:35:22 +0000 (08:35 +0000)
backup.c

index 612130bf8ba3131e8f709fbbe83fed6c3b1398fb..85000431d7d47dc19b747f756400f7cbdd5542c1 100644 (file)
--- 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 = '/';