mirror of
https://github.com/samba-team/samba.git
synced 2024-12-23 17:34:34 +03:00
fix handling of parametric smb.conf parms with embedded spaces
(This used to be commit dad7d285ab
)
This commit is contained in:
parent
de10237719
commit
dbe7b0c402
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user