summaryrefslogtreecommitdiff
path: root/source4
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2003-08-15 19:09:52 +0000
committerAndrew Tridgell <tridge@samba.org>2003-08-15 19:09:52 +0000
commitdbe7b0c402f1d447c6eb4f7f35ad58d2fc2eae49 (patch)
tree994647b9a1aa95aba8214b1adca6297ebabb2ceb /source4
parentde10237719db8101cd9487b257761d4721f857ab (diff)
downloadsamba-dbe7b0c402f1d447c6eb4f7f35ad58d2fc2eae49.tar.gz
samba-dbe7b0c402f1d447c6eb4f7f35ad58d2fc2eae49.tar.bz2
samba-dbe7b0c402f1d447c6eb4f7f35ad58d2fc2eae49.zip
fix handling of parametric smb.conf parms with embedded spaces
(This used to be commit dad7d285abe853653e72ba2e5ed03092061e9d65)
Diffstat (limited to 'source4')
-rw-r--r--source4/param/loadparm.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/source4/param/loadparm.c b/source4/param/loadparm.c
index 89ba792600..456a57c6fa 100644
--- a/source4/param/loadparm.c
+++ b/source4/param/loadparm.c
@@ -3011,10 +3011,13 @@ static BOOL lp_do_parameter_parametric(int snum, const char *pszParmName, const
struct param_opt *paramo, *data;
char *name;
+ while (isspace(*pszParmName)) {
+ pszParmName++;
+ }
+
name = strdup(pszParmName);
if (!name) return False;
- string_sub(name, " ", "", 0);
strlower(name);
if (snum < 0) {