From dbe7b0c402f1d447c6eb4f7f35ad58d2fc2eae49 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Fri, 15 Aug 2003 19:09:52 +0000 Subject: fix handling of parametric smb.conf parms with embedded spaces (This used to be commit dad7d285abe853653e72ba2e5ed03092061e9d65) --- source4/param/loadparm.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'source4') 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) { -- cgit