summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Adam <obnox@samba.org>2011-02-09 13:42:38 +0100
committerMichael Adam <obnox@samba.org>2011-02-09 14:00:33 +0100
commitc6f797d020e5192be93fb4b006e984f5e1d63d75 (patch)
treebbe403699cd2f4d117dcb53dec81969e95d78a94
parenta65eedd0c78034b2dc9e08c3d632d064ebefebed (diff)
downloadsamba-c6f797d020e5192be93fb4b006e984f5e1d63d75.tar.gz
samba-c6f797d020e5192be93fb4b006e984f5e1d63d75.tar.bz2
samba-c6f797d020e5192be93fb4b006e984f5e1d63d75.zip
s3:loadparm: skip leading spaces in parameter values from the command line
-rw-r--r--source3/param/loadparm.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/source3/param/loadparm.c b/source3/param/loadparm.c
index e57d5ea056..04f356157a 100644
--- a/source3/param/loadparm.c
+++ b/source3/param/loadparm.c
@@ -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;
}