From d16c2aabd7c46f3d294e2401ad1ee4685486cd4b Mon Sep 17 00:00:00 2001 From: Michael Adam Date: Tue, 24 Sep 2013 06:43:03 +0200 Subject: s3:net: check for GLOBAL_NAME net_conf_param_valid() instead of checking for literal "global" Signed-off-by: Michael Adam Reviewed-by: Andrew Bartlett --- source3/utils/net_conf_util.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source3/utils') diff --git a/source3/utils/net_conf_util.c b/source3/utils/net_conf_util.c index 2c70371a3f..a188097cca 100644 --- a/source3/utils/net_conf_util.c +++ b/source3/utils/net_conf_util.c @@ -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; -- cgit