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-Tag: v3.1.0pre1~472 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6d301fa3de32d35cd88b113aef720676a4fbc573;p=thirdparty%2Frsync.git 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) {