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:
29bca53
)
Don't try to delete when list_only is set.
author
Wayne Davison
<wayned@samba.org>
Wed, 21 Nov 2007 15:09:26 +0000
(07:09 -0800)
committer
Wayne Davison
<wayned@samba.org>
Wed, 21 Nov 2007 15:09:26 +0000
(07:09 -0800)
generator.c
patch
|
blob
|
blame
|
history
diff --git
a/generator.c
b/generator.c
index
e0fb51d
..
3804118
100644
(file)
--- a/
generator.c
+++ b/
generator.c
@@
-2040,7
+2040,7
@@
void generate_files(int f_out, const char *local_name)
f_name(fp, fbuf);
ndx = cur_flist->ndx_start - 1;
recv_generator(fbuf, fp, ndx, itemizing, code, f_out);
f_name(fp, fbuf);
ndx = cur_flist->ndx_start - 1;
recv_generator(fbuf, fp, ndx, itemizing, code, f_out);
- if (delete_during && dry_run < 2) {
+ if (delete_during && dry_run < 2
&& !list_only
) {
if (BITS_SETnUNSET(fp->flags, FLAG_CONTENT_DIR, FLAG_MISSING_DIR)) {
dev_t dirdev;
if (one_file_system) {
if (BITS_SETnUNSET(fp->flags, FLAG_CONTENT_DIR, FLAG_MISSING_DIR)) {
dev_t dirdev;
if (one_file_system) {