summaryrefslogtreecommitdiff
path: root/source3/param
diff options
context:
space:
mode:
authorMichael Adam <obnox@samba.org>2008-04-21 00:17:49 +0200
committerMichael Adam <obnox@samba.org>2008-04-21 00:21:23 +0200
commit4244655e5b7419c7e2fc0d337baf1df4ee4443b0 (patch)
tree2dfddeebe4219c2afd91eafddc32735ddd496d6c /source3/param
parent318c983d829dce6ed7f1428ad025f6a9b97ddda6 (diff)
downloadsamba-4244655e5b7419c7e2fc0d337baf1df4ee4443b0.tar.gz
samba-4244655e5b7419c7e2fc0d337baf1df4ee4443b0.tar.bz2
samba-4244655e5b7419c7e2fc0d337baf1df4ee4443b0.zip
loadparm: rename bNoIncludes to bAllowIncludeRegistry (inverting logic)
This is what that variable controls now... Michael (This used to be commit bba04a8fba6fd5cf62578733cfdabea590e8ff51)
Diffstat (limited to 'source3/param')
-rw-r--r--source3/param/loadparm.c13
1 files changed, 7 insertions, 6 deletions
diff --git a/source3/param/loadparm.c b/source3/param/loadparm.c
index a60118ad83..cdac0f1ccc 100644
--- a/source3/param/loadparm.c
+++ b/source3/param/loadparm.c
@@ -6727,14 +6727,14 @@ static bool handle_netbios_aliases(int snum, const char *pszParmValue, char **pt
/***************************************************************************
Handle the include operation.
***************************************************************************/
-static bool bNoIncludes = false;
+static bool bAllowIncludeRegistry = true;
static bool handle_include(int snum, const char *pszParmValue, char **ptr)
{
char *fname;
if (strequal(pszParmValue, INCLUDE_REGISTRY_NAME)) {
- if (bNoIncludes) {
+ if (!bAllowIncludeRegistry) {
return true;
}
if (bInGlobalSection) {
@@ -8660,7 +8660,7 @@ bool lp_load_ex(const char *pszFname,
bool save_defaults,
bool add_ipc,
bool initialize_globals,
- bool no_includes)
+ bool allow_include_registry)
{
char *n2 = NULL;
bool bRetval;
@@ -8672,7 +8672,7 @@ bool lp_load_ex(const char *pszFname,
bInGlobalSection = True;
bGlobalOnly = global_only;
- bNoIncludes = no_includes;
+ bAllowIncludeRegistry = allow_include_registry;
init_globals(! initialize_globals);
debug_init();
@@ -8733,7 +8733,8 @@ bool lp_load_ex(const char *pszFname,
init_globals(false);
lp_kill_all_services();
return lp_load_ex(pszFname, global_only, save_defaults,
- add_ipc, initialize_globals, no_includes);
+ add_ipc, initialize_globals,
+ allow_include_registry);
}
} else if (lp_config_backend_is_registry()) {
bRetval = process_registry_globals();
@@ -8768,7 +8769,7 @@ bool lp_load_ex(const char *pszFname,
init_iconv();
- bNoIncludes = false;
+ bAllowIncludeRegistry = true;
return (bRetval);
}