Don't send a bogus "-" option to an older server if there were
[rsync.git] / options.c
index aebfdf8654ad826033846fde85c721ec91dedf0c..71fda24fd9c32bde29cbd45dab32babc485e8839 100644 (file)
--- a/options.c
+++ b/options.c
@@ -1840,7 +1840,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) {