From: David Dykstra Date: Fri, 2 Apr 1999 18:24:27 +0000 (+0000) Subject: Small bug fix for the --compare-dest option: when a file's contents X-Git-Url: https://mattmccutchen.net/rsync/rsync.git/commitdiff_plain/bd4ed7f7193b86072da004c5d5b766c1bccfb869 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. --- 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; }