summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--source4/param/loadparm.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/source4/param/loadparm.c b/source4/param/loadparm.c
index 752f1d950e..397d131d75 100644
--- a/source4/param/loadparm.c
+++ b/source4/param/loadparm.c
@@ -2431,6 +2431,9 @@ BOOL lp_set_cmdline(const char *pszParmName, const char *pszParmValue)
int parmnum = map_parameter(pszParmName);
int i;
+ while (isspace(*pszParmValue)) pszParmValue++;
+
+
if (parmnum < 0 && strchr(pszParmName, ':')) {
/* set a parametric option */
return lp_do_parameter_parametric(-1, pszParmName, pszParmValue, FLAG_CMDLINE);