Matt McCutchen's Web Site
/
rsync
/
rsync.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
752eaba
)
Small bug fix for the --compare-dest option: when a file's contents
author
David Dykstra
<dwd@samba.org>
Fri, 2 Apr 1999 18:24:27 +0000
(18:24 +0000)
committer
David Dykstra
<dwd@samba.org>
Fri, 2 Apr 1999 18:24:27 +0000
(18:24 +0000)
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.
generator.c
patch
|
blob
|
blame
|
history
diff --git
a/generator.c
b/generator.c
index
8b0eeab
..
d77e7b5
100644
(file)
--- 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;
}