X-Git-Url: https://mattmccutchen.net/rsync/rsync.git/blobdiff_plain/53f821f1e6366e3dc67ce33c51d4c7a07017ffdd..79fc6bdb4501ad9fc1e7b2b5350edab5c6d7fc46:/flist.c diff --git a/flist.c b/flist.c index f7ab5a9c..c6e0006c 100644 --- a/flist.c +++ b/flist.c @@ -683,10 +683,17 @@ struct file_list *send_file_list(int f,int argc,char *argv[]) *p = '/'; for (p=fname+1; (p=strchr(p,'/')); p++) { int copy_links_saved = copy_links; + int recurse_saved = recurse; *p = 0; copy_links = copy_unsafe_links; + /* set recurse to 1 to prevent make_file + from ignoring directory, but still + turn off the recursive parameter to + send_file_name */ + recurse = 1; send_file_name(f, flist, fname, 0, 0); copy_links = copy_links_saved; + recurse = recurse_saved; *p = '/'; } } else {