From: Wayne Davison Date: Mon, 9 Jun 2008 14:42:03 +0000 (-0700) Subject: Handle a solo_file of a directory for --delete-during. X-Git-Url: https://mattmccutchen.net/rsync/rsync.git/commitdiff_plain/ca7d17e41da3b7fe3b2356215093317e54330c77 Handle a solo_file of a directory for --delete-during. --- diff --git a/generator.c b/generator.c index 2ae88dbe..73dc163d 100644 --- 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