diff options
author | Michael Adam <obnox@samba.org> | 2011-02-09 13:42:38 +0100 |
---|---|---|
committer | Michael Adam <obnox@samba.org> | 2011-02-09 14:00:33 +0100 |
commit | c6f797d020e5192be93fb4b006e984f5e1d63d75 (patch) | |
tree | bbe403699cd2f4d117dcb53dec81969e95d78a94 | |
parent | a65eedd0c78034b2dc9e08c3d632d064ebefebed (diff) | |
download | samba-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.c | 7 |
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; } |