From: Wayne Davison Date: Tue, 21 Nov 2006 08:35:22 +0000 (+0000) Subject: The call to do_chmod() needed to be conditional. X-Git-Tag: v3.0.0pre1~562 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1e999f9f1b6940a4b355054b5f15435c3030996c;p=thirdparty%2Frsync.git The call to do_chmod() needed to be conditional. --- 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 = '/';