/***************************************************************************
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) {
bool save_defaults,
bool add_ipc,
bool initialize_globals,
- bool no_includes)
+ bool allow_include_registry)
{
char *n2 = NULL;
bool bRetval;
bInGlobalSection = True;
bGlobalOnly = global_only;
- bNoIncludes = no_includes;
+ bAllowIncludeRegistry = allow_include_registry;
init_globals(! initialize_globals);
debug_init();
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();
init_iconv();
- bNoIncludes = false;
+ bAllowIncludeRegistry = true;
return (bRetval);
}