From 26bbb6aa4b1ebce2b2d0f925deb53ab294c5fe71 Mon Sep 17 00:00:00 2001 From: Wayne Davison Date: Sun, 7 Oct 2007 03:52:24 +0000 Subject: [PATCH] Set xfer_dirs when we set list_only. --- main.c | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/main.c b/main.c index 80224ca1..4b67f2ac 100644 --- a/main.c +++ b/main.c @@ -50,6 +50,7 @@ extern int preserve_hard_links; extern int protocol_version; extern int file_total; extern int recurse; +extern int xfer_dirs; extern int protect_args; extern int relative_paths; extern int sanitize_paths; @@ -1048,8 +1049,10 @@ int client_run(int f_in, int f_out, pid_t pid, int argc, char *argv[]) io_start_multiplex_out(); } - if (argc == 0) + if (argc == 0) { list_only |= 1; + xfer_dirs |= 1; + } send_filter_list(read_batch ? -1 : f_out); @@ -1161,7 +1164,8 @@ static int start_client(int argc, char *argv[]) static char *dotarg[1] = { "." }; p = dotarg[0]; remote_argv = dotarg; - list_only = 1; + list_only |= 1; + xfer_dirs |= 1; } remote_argc = 1; @@ -1233,8 +1237,10 @@ static int start_client(int argc, char *argv[]) } remote_argv[i] = arg; } - if (argc == 0) + if (argc == 0) { list_only |= 1; + xfer_dirs |= 1; + } } if (daemon_over_rsh < 0) -- 2.34.1