mirror of
https://github.com/samba-team/samba.git
synced 2025-01-13 13:18:06 +03:00
s3:loadparm: add wrapper lp_load_client_no_reinit()
This commit is contained in:
parent
5676fbb399
commit
4e41d38df3
@ -1620,6 +1620,7 @@ bool lp_load_initial_only(const char *pszFname);
|
||||
bool lp_load_global(const char *file_name);
|
||||
bool lp_load_client(const char *file_name);
|
||||
bool lp_load_global_no_reinit(const char *file_name);
|
||||
bool lp_load_client_no_reinit(const char *file_name);
|
||||
bool lp_load_with_registry_shares(const char *pszFname,
|
||||
bool global_only,
|
||||
bool save_defaults,
|
||||
|
@ -9158,6 +9158,16 @@ bool lp_load_global_no_reinit(const char *file_name)
|
||||
false); /* load_all_shares*/
|
||||
}
|
||||
|
||||
/**
|
||||
* lp_load wrapper, especially for clients, no reinitialization
|
||||
*/
|
||||
bool lp_load_client_no_reinit(const char *file_name)
|
||||
{
|
||||
lp_set_in_client(true);
|
||||
|
||||
return lp_load_global_no_reinit(file_name);
|
||||
}
|
||||
|
||||
bool lp_load_with_registry_shares(const char *pszFname,
|
||||
bool global_only,
|
||||
bool save_defaults,
|
||||
|
Loading…
Reference in New Issue
Block a user