diff options
-rw-r--r-- | source3/include/proto.h | 1 | ||||
-rw-r--r-- | source3/param/loadparm.c | 10 |
2 files changed, 11 insertions, 0 deletions
diff --git a/source3/include/proto.h b/source3/include/proto.h index a3e5fb6b4a..de4ed05134 100644 --- a/source3/include/proto.h +++ b/source3/include/proto.h @@ -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, diff --git a/source3/param/loadparm.c b/source3/param/loadparm.c index 135f6f5451..42b9bad1ac 100644 --- a/source3/param/loadparm.c +++ b/source3/param/loadparm.c @@ -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, |