mirror of
https://github.com/samba-team/samba.git
synced 2025-03-08 04:58:40 +03:00
loadparm: add utility function to check for config backend file.
Michael (This used to be commit 288495ec1a9b0c37bb3f98043f8f8dd946072bac)
This commit is contained in:
parent
4f739abea5
commit
62c9c6be22
@ -6586,6 +6586,14 @@ bool lp_config_backend_is_registry(void)
|
||||
return (lp_config_backend() == CONFIG_BACKEND_REGISTRY);
|
||||
}
|
||||
|
||||
/**
|
||||
* Utility function to check if the config backend is FILE.
|
||||
*/
|
||||
bool lp_config_backend_is_file(void)
|
||||
{
|
||||
return (lp_config_backend() == CONFIG_BACKEND_FILE);
|
||||
}
|
||||
|
||||
/*******************************************************************
|
||||
Check if a config file has changed date.
|
||||
********************************************************************/
|
||||
@ -8666,7 +8674,7 @@ bool lp_load(const char *pszFname,
|
||||
Globals.param_opt = NULL;
|
||||
}
|
||||
|
||||
if (lp_config_backend() == CONFIG_BACKEND_FILE) {
|
||||
if (lp_config_backend_is_file()) {
|
||||
n2 = alloc_sub_basic(get_current_username(),
|
||||
current_user_info.domain,
|
||||
pszFname);
|
||||
|
Loading…
x
Reference in New Issue
Block a user