X-Git-Url: https://mattmccutchen.net/rsync/rsync.git/blobdiff_plain/e7c67065c060d500eba8d073da9568db2c658aad..d521e1c2a1980d241b0ca611d71c78d51bf255f5:/backup.c 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 = '/';