diff options
author | David Dykstra <dwd@samba.org> | 1999-04-02 18:24:27 +0000 |
---|---|---|
committer | David Dykstra <dwd@samba.org> | 1999-04-02 18:24:27 +0000 |
commit | bd4ed7f7193b86072da004c5d5b766c1bccfb869 (patch) | |
tree | 65724d4fd5a916521e6c72b88914b32302dac84a | |
parent | 752eaba41f34ce65c87418608efb591b5627ee65 (diff) | |
download | rsync-bd4ed7f7193b86072da004c5d5b766c1bccfb869.tar.gz |
Small bug fix for the --compare-dest option: when a file's contents
hadn't changed but its permissions had, the file wasn't copied but
its permissions were attempted to be set anyway. Made a change to
skip setting the permissions in that case.
-rw-r--r-- | generator.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/generator.c b/generator.c index 8b0eeab1..d77e7b56 100644 --- a/generator.c +++ b/generator.c @@ -317,7 +317,8 @@ void recv_generator(char *fname,struct file_list *flist,int i,int f_out) } if (skip_file(fname, file, &st)) { - set_perms(fname,file,&st,1); + if (fnamecmp == fname) + set_perms(fname,file,&st,1); return; } |