mirror of
https://github.com/samba-team/samba.git
synced 2025-03-09 08:58:35 +03:00
s3:net: check for GLOBAL_NAME net_conf_param_valid()
instead of checking for literal "global" Signed-off-by: Michael Adam <obnox@samba.org> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
This commit is contained in:
parent
f7cf09e661
commit
d16c2aabd7
@ -46,7 +46,7 @@ bool net_conf_param_valid(const char *service,
|
||||
return false;
|
||||
}
|
||||
|
||||
if (!strequal(service, "global") && lp_parameter_is_global(param)) {
|
||||
if (!strequal(service, GLOBAL_NAME) && lp_parameter_is_global(param)) {
|
||||
d_fprintf(stderr, "Global parameter '%s' not allowed in "
|
||||
"service definition ('%s').\n", param, service);
|
||||
return false;
|
||||
|
Loading…
x
Reference in New Issue
Block a user