From: Michael Adam Date: Wed, 9 Feb 2011 12:42:38 +0000 (+0100) Subject: s3:loadparm: skip leading spaces in parameter values from the command line X-Git-Tag: tevent-0.9.11~850 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=c6f797d020e5192be93fb4b006e984f5e1d63d75;p=thirdparty%2Fsamba.git s3:loadparm: skip leading spaces in parameter values from the command line --- diff --git a/source3/param/loadparm.c b/source3/param/loadparm.c index e57d5ea056f..04f356157a8 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; }