]> git.ipfire.org Git - thirdparty/rsync.git/commitdiff
Don't send a bogus "-" option to an older server if there were
authorWayne Davison <wayned@samba.org>
Wed, 24 Sep 2008 02:35:36 +0000 (19:35 -0700)
committerWayne Davison <wayned@samba.org>
Wed, 24 Sep 2008 02:35:36 +0000 (19:35 -0700)
no short options specified.

options.c

index 2d049744795f2af9f39ffa78bd3c1607ad18dffc..16b7fb3fd72a990245807a8547246f255699a9ec 100644 (file)
--- 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) {