mirror of
https://github.com/samba-team/samba.git
synced 2025-03-12 20:58:37 +03:00
r23745: Fix: Check whether top subkeyname instead of whole registry key name
is equal to GLOBAL_NAME. Michael
This commit is contained in:
parent
204f4f1a94
commit
fdcdcacf0a
@ -184,11 +184,12 @@ static WERROR reg_setvalue_internal(struct registry_key *key,
|
||||
goto done;
|
||||
}
|
||||
|
||||
if (!strequal(key->key->name, GLOBAL_NAME) &&
|
||||
if (!strequal(strrchr_m(key->key->name, '\\')+1, GLOBAL_NAME) &&
|
||||
lp_parameter_is_global(valname))
|
||||
{
|
||||
d_fprintf(stderr, "Global paramter '%s' not allowed in "
|
||||
"service definition.\n", valname);
|
||||
"service definition ('%s').\n", valname,
|
||||
strrchr_m(key->key->name, '\\')+1);
|
||||
werr = WERR_INVALID_PARAM;
|
||||
goto done;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user