diff options
author | Michael Adam <obnox@samba.org> | 2013-09-24 06:43:03 +0200 |
---|---|---|
committer | Michael Adam <obnox@samba.org> | 2013-09-24 07:44:28 +0200 |
commit | d16c2aabd7c46f3d294e2401ad1ee4685486cd4b (patch) | |
tree | 9ef76157fd6f56bb2be59a11c334a697bf49fb21 /source3/utils | |
parent | f7cf09e661734744163c96c214892558b3d004e5 (diff) | |
download | samba-d16c2aabd7c46f3d294e2401ad1ee4685486cd4b.tar.gz samba-d16c2aabd7c46f3d294e2401ad1ee4685486cd4b.tar.bz2 samba-d16c2aabd7c46f3d294e2401ad1ee4685486cd4b.zip |
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>
Diffstat (limited to 'source3/utils')
-rw-r--r-- | source3/utils/net_conf_util.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; |