From d348d5fd5ffb55ccddb11d5428a7a3a3445ce037 Mon Sep 17 00:00:00 2001 From: Wayne Davison Date: Sat, 9 Feb 2008 22:07:03 -0800 Subject: [PATCH] Add a trailing slash to a modname arg that has no path information. This ensures that the user gets a "skipping" message if they didn't specify -r or -d. (A trailing-slash was already being added to a lone modname for --list-only transfers.) --- clientserver.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/clientserver.c b/clientserver.c index 19c2a257..71cb9791 100644 --- a/clientserver.c +++ b/clientserver.c @@ -245,7 +245,7 @@ int start_inband_exchange(int f_in, int f_out, const char *user, int argc, char rprintf(FERROR, "internal: args[] overflowed in do_cmd()\n"); exit_cleanup(RERR_SYNTAX); } - if (list_only && strncmp(*argv, modname, modlen) == 0 + if (strncmp(*argv, modname, modlen) == 0 && argv[0][modlen] == '\0') sargs[sargc++] = modname; /* we send "modname/" */ else -- 2.34.1