diff options
author | Andrew Tridgell <tridge@samba.org> | 1998-06-18 13:26:10 +0000 |
---|---|---|
committer | Andrew Tridgell <tridge@samba.org> | 1998-06-18 13:26:10 +0000 |
commit | 46831d6fcf5ace953b1e354a542b9bb45cdf376a (patch) | |
tree | fc7f0cfd8c0c9cc8947200d011fc9861b69cb483 /rsync.c | |
parent | b58ad6c569e185cb7c8512ee5e061762b5ebe605 (diff) | |
download | rsync-46831d6fcf5ace953b1e354a542b9bb45cdf376a.tar.gz rsync-46831d6fcf5ace953b1e354a542b9bb45cdf376a.tar.bz2 rsync-46831d6fcf5ace953b1e354a542b9bb45cdf376a.zip |
fixed chmod bug pointed out by Han Holl <jeholl@euronet.nl>
Diffstat (limited to 'rsync.c')
-rw-r--r-- | rsync.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -311,7 +311,8 @@ static int set_perms(char *fname,struct file_struct *file,STRUCT_STAT *st, #ifdef HAVE_CHMOD if (preserve_perms && !S_ISLNK(st->st_mode) && - st->st_mode != file->mode) { + (st->st_mode != file->mode || + (updated && (file->mode & ~ACCESSPERMS)))) { updated = 1; if (do_chmod(fname,file->mode) != 0) { rprintf(FERROR,"failed to set permissions on %s : %s\n", |