git.samba.org
/
metze
/
samba
/
wip.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f7cf09e
)
s3:net: check for GLOBAL_NAME net_conf_param_valid()
author
Michael Adam
<obnox@samba.org>
Tue, 24 Sep 2013 04:43:03 +0000
(06:43 +0200)
committer
Michael Adam
<obnox@samba.org>
Tue, 24 Sep 2013 05:44:28 +0000
(07:44 +0200)
instead of checking for literal "global"
Signed-off-by: Michael Adam <obnox@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
source3/utils/net_conf_util.c
patch
|
blob
|
history
diff --git
a/source3/utils/net_conf_util.c
b/source3/utils/net_conf_util.c
index 2c70371a3f85b0c8e89dad065aa9c7eb0dd8fb31..a188097cca45d27dc540fc916bfcc894302eb88c 100644
(file)
--- 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;