Don't send a bogus "-" option to an older server if there were
authorWayne Davison <wayned@samba.org>
Sat, 27 Sep 2008 04:09:41 +0000 (21:09 -0700)
committerWayne Davison <wayned@samba.org>
Sat, 27 Sep 2008 04:09:41 +0000 (21:09 -0700)
no short options specified.

options.c

index aebfdf8..71fda24 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) {