From 983f647c7ea28f1beda1b38fe7ee885a19d2d5d5 Mon Sep 17 00:00:00 2001 From: Wayne Davison Date: Sun, 7 Oct 2007 03:29:04 +0000 Subject: [PATCH] Fix list-only output of dirs w/--relative but w/o --recursive. --- generator.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/generator.c b/generator.c index e6e50032..502030a8 100644 --- a/generator.c +++ b/generator.c @@ -1139,7 +1139,7 @@ static void recv_generator(char *fname, struct file_struct *file, int ndx, if (list_only) { if (S_ISDIR(file->mode) - && ((!implied_dirs && !(file->flags & FLAG_XFER_DIR)) + && ((relative_paths && !implied_dirs && !(file->flags & FLAG_XFER_DIR)) || (inc_recurse && ndx != cur_flist->ndx_start - 1))) return; list_file_entry(file); -- 2.34.1