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
A minor tweak for the dry_run logic.
[rsync/rsync.git]
/
generator.c
diff --git
a/generator.c
b/generator.c
index
8f3177c
..
ad28e83
100644
(file)
--- a/
generator.c
+++ b/
generator.c
@@
-525,12
+525,12
@@
prepare_to_open:
statret = 0;
}
statret = 0;
}
- if (dry_run || whole_file > 0) {
+ if (dry_run || read_batch)
+ goto notify_others;
+ if (whole_file > 0) {
statret = -1;
goto notify_others;
}
statret = -1;
goto notify_others;
}
- if (read_batch)
- goto notify_others;
/* open the file */
fd = do_open(fnamecmp, O_RDONLY, 0);
/* open the file */
fd = do_open(fnamecmp, O_RDONLY, 0);