s3:loadparm: skip leading spaces in parameter values from the command line
authorMichael Adam <obnox@samba.org>
Wed, 9 Feb 2011 12:42:38 +0000 (13:42 +0100)
committerMichael Adam <obnox@samba.org>
Wed, 9 Feb 2011 14:21:27 +0000 (15:21 +0100)
source3/param/loadparm.c

index e57d5ea056f34c3c2e2f93bd084f0cf6660a47bb..04f356157a8fc714fb04c06c6952f04b2dd1e7fe 100644 (file)
@@ -8045,7 +8045,12 @@ bool lp_set_option(const char *option)
 
        *p = 0;
 
-       ret = lp_set_cmdline(s, p+1);
+       /* skip white spaces after the = sign */
+       do {
+               p++;
+       } while (*p == ' ');
+
+       ret = lp_set_cmdline(s, p);
        talloc_free(s);
        return ret;
 }