diff options
author | Andrew Tridgell <tridge@samba.org> | 2003-08-15 19:09:52 +0000 |
---|---|---|
committer | Andrew Tridgell <tridge@samba.org> | 2003-08-15 19:09:52 +0000 |
commit | dbe7b0c402f1d447c6eb4f7f35ad58d2fc2eae49 (patch) | |
tree | 994647b9a1aa95aba8214b1adca6297ebabb2ceb /source4 | |
parent | de10237719db8101cd9487b257761d4721f857ab (diff) | |
download | samba-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.c | 5 |
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) { |