git.samba.org
/
rsync.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6283e9e
)
Handle a solo_file of a directory for --delete-during.
author
Wayne Davison
<wayned@samba.org>
Mon, 9 Jun 2008 14:42:03 +0000
(07:42 -0700)
committer
Wayne Davison
<wayned@samba.org>
Mon, 9 Jun 2008 14:42:03 +0000
(07:42 -0700)
generator.c
patch
|
blob
|
history
diff --git
a/generator.c
b/generator.c
index 2ae88dbe5d7d019e86e81da68efa6aa3efee3a0b..73dc163da9f05aa65210d191787c709ef5f8aa61 100644
(file)
--- a/
generator.c
+++ b/
generator.c
@@
-2210,7
+2210,10
@@
void generate_files(int f_out, const char *local_name)
if (inc_recurse && cur_flist->parent_ndx >= 0) {
struct file_struct *fp = dir_flist->files[cur_flist->parent_ndx];
- f_name(fp, fbuf);
+ if (solo_file)
+ strlcpy(fbuf, solo_file, sizeof fbuf);
+ else
+ 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 && !list_only