Matt McCutchen's Web Site
/
rsync
/
rsync.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
added RSYNC_PROXY support from Stephen Rothwell. This allows access to
[rsync/rsync.git]
/
generator.c
diff --git
a/generator.c
b/generator.c
index
1be4717
..
d77e7b5
100644
(file)
--- a/
generator.c
+++ b/
generator.c
@@
-182,7
+182,7
@@
void recv_generator(char *fname,struct file_list *flist,int i,int f_out)
if (S_ISDIR(file->mode)) {
if (dry_run) return;
if (statret == 0 && !S_ISDIR(st.st_mode)) {
if (S_ISDIR(file->mode)) {
if (dry_run) return;
if (statret == 0 && !S_ISDIR(st.st_mode)) {
- if (
do
_unlink(fname) != 0) {
+ if (
robust
_unlink(fname) != 0) {
rprintf(FERROR,"unlink %s : %s\n",fname,strerror(errno));
return;
}
rprintf(FERROR,"unlink %s : %s\n",fname,strerror(errno));
return;
}
@@
-317,7
+317,8
@@
void recv_generator(char *fname,struct file_list *flist,int i,int f_out)
}
if (skip_file(fname, file, &st)) {
}
if (skip_file(fname, file, &st)) {
- set_perms(fname,file,&st,1);
+ if (fnamecmp == fname)
+ set_perms(fname,file,&st,1);
return;
}
return;
}