From: Wayne Davison Date: Wed, 24 Sep 2008 02:35:36 +0000 (-0700) Subject: Don't send a bogus "-" option to an older server if there were X-Git-Url: https://mattmccutchen.net/rsync/rsync.git/commitdiff_plain/6d301fa3de32d35cd88b113aef720676a4fbc573 Don't send a bogus "-" option to an older server if there were no short options specified. --- diff --git a/options.c b/options.c index 2d049744..16b7fb3f 100644 --- a/options.c +++ b/options.c @@ -2267,7 +2267,8 @@ void server_options(char **args, int *argc_p) argstr[x] = '\0'; - args[ac++] = argstr; + if (x > 1) + args[ac++] = argstr; #ifdef ICONV_OPTION if (iconv_opt) {