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 2d04974..16b7fb3 100644 (file)
--- a/options.c
+++ b/options.c
@@ -2267,7 +2267,8 @@ void server_options(char **args, int *argc_p)
 
        argstr[x] = '\0';
 
 
        argstr[x] = '\0';
 
-       args[ac++] = argstr;
+       if (x > 1)
+               args[ac++] = argstr;
 
 #ifdef ICONV_OPTION
        if (iconv_opt) {
 
 #ifdef ICONV_OPTION
        if (iconv_opt) {