diff options
author | Michael Adam <obnox@samba.org> | 2011-07-26 12:44:44 +0200 |
---|---|---|
committer | Michael Adam <obnox@samba.org> | 2011-07-28 11:17:28 +0200 |
commit | 4e41d38df3ad80a379899b611f7e2fac44d42155 (patch) | |
tree | 491a9eb8021a585ccdfdc9a305bc045e9ec2e988 | |
parent | 5676fbb3991cf20dc9686ea416ca83590f975683 (diff) | |
download | samba-4e41d38df3ad80a379899b611f7e2fac44d42155.tar.gz samba-4e41d38df3ad80a379899b611f7e2fac44d42155.tar.bz2 samba-4e41d38df3ad80a379899b611f7e2fac44d42155.zip |
s3:loadparm: add wrapper lp_load_client_no_reinit()
-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, |