summaryrefslogtreecommitdiff
path: root/source4
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2004-10-19 10:02:02 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 13:01:55 -0500
commit904f20a9fba420e16fe3c281ca60a9189327334d (patch)
treefcab2a58a01c4fa1a053399fdd35a51c72878e4f /source4
parent23d3b714f1b1af6fae60618cb55988f60a64cffd (diff)
downloadsamba-904f20a9fba420e16fe3c281ca60a9189327334d.tar.gz
samba-904f20a9fba420e16fe3c281ca60a9189327334d.tar.bz2
samba-904f20a9fba420e16fe3c281ca60a9189327334d.zip
r3062: handle spaces at the start of options in lp_set_cmdline()
(This used to be commit 069305adaf5e88d83f4591acced807d5ea1aa194)
Diffstat (limited to 'source4')
-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);