mirror of
https://github.com/samba-team/samba.git
synced 2025-03-09 08:58:35 +03:00
loadparm: add parameter allow_registry_shares to lp_load_ex().
This allows for registry shares to be activated, i.e. loaded into the services array at lp_load() time. Michael (This used to be commit b3233ecefd5df745ba7e10511f9ab36064036b10)
This commit is contained in:
parent
86766b5220
commit
0ba819dd21
@ -8719,7 +8719,8 @@ bool lp_load_ex(const char *pszFname,
|
|||||||
bool save_defaults,
|
bool save_defaults,
|
||||||
bool add_ipc,
|
bool add_ipc,
|
||||||
bool initialize_globals,
|
bool initialize_globals,
|
||||||
bool allow_include_registry)
|
bool allow_include_registry,
|
||||||
|
bool allow_registry_shares)
|
||||||
{
|
{
|
||||||
char *n2 = NULL;
|
char *n2 = NULL;
|
||||||
bool bRetval;
|
bool bRetval;
|
||||||
@ -8793,7 +8794,8 @@ bool lp_load_ex(const char *pszFname,
|
|||||||
lp_kill_all_services();
|
lp_kill_all_services();
|
||||||
return lp_load_ex(pszFname, global_only, save_defaults,
|
return lp_load_ex(pszFname, global_only, save_defaults,
|
||||||
add_ipc, initialize_globals,
|
add_ipc, initialize_globals,
|
||||||
allow_include_registry);
|
allow_include_registry,
|
||||||
|
allow_registry_shares);
|
||||||
}
|
}
|
||||||
} else if (lp_config_backend_is_registry()) {
|
} else if (lp_config_backend_is_registry()) {
|
||||||
bRetval = process_registry_globals();
|
bRetval = process_registry_globals();
|
||||||
@ -8803,6 +8805,10 @@ bool lp_load_ex(const char *pszFname,
|
|||||||
bRetval = false;
|
bRetval = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (bRetval && lp_registry_shares() && allow_registry_shares) {
|
||||||
|
bRetval = process_registry_shares();
|
||||||
|
}
|
||||||
|
|
||||||
lp_add_auto_services(lp_auto_services());
|
lp_add_auto_services(lp_auto_services());
|
||||||
|
|
||||||
if (add_ipc) {
|
if (add_ipc) {
|
||||||
@ -8844,7 +8850,7 @@ bool lp_load(const char *pszFname,
|
|||||||
save_defaults,
|
save_defaults,
|
||||||
add_ipc,
|
add_ipc,
|
||||||
initialize_globals,
|
initialize_globals,
|
||||||
true);
|
true, false);
|
||||||
}
|
}
|
||||||
|
|
||||||
bool lp_load_initial_only(const char *pszFname)
|
bool lp_load_initial_only(const char *pszFname)
|
||||||
@ -8854,6 +8860,7 @@ bool lp_load_initial_only(const char *pszFname)
|
|||||||
false,
|
false,
|
||||||
false,
|
false,
|
||||||
true,
|
true,
|
||||||
|
false,
|
||||||
false);
|
false);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user