diff options
author | Michael Adam <obnox@samba.org> | 2011-07-22 17:23:31 +0200 |
---|---|---|
committer | Michael Adam <obnox@samba.org> | 2011-07-28 11:17:26 +0200 |
commit | 37f548d788c69fa45311dd294edcc06a38599712 (patch) | |
tree | 1d6759ca47d908d8543e880e16e1e4cbd05fc390 /source3/param | |
parent | 1379ef8b7bbc09a0863705933bd57e5b6275d6a9 (diff) | |
download | samba-37f548d788c69fa45311dd294edcc06a38599712.tar.gz samba-37f548d788c69fa45311dd294edcc06a38599712.tar.bz2 samba-37f548d788c69fa45311dd294edcc06a38599712.zip |
s3:loadparm: add lp_load_client() that also sets the client state internally
Diffstat (limited to 'source3/param')
-rw-r--r-- | source3/param/loadparm.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/source3/param/loadparm.c b/source3/param/loadparm.c index 2f2d69b185..2b640fea06 100644 --- a/source3/param/loadparm.c +++ b/source3/param/loadparm.c @@ -9132,6 +9132,16 @@ bool lp_load_global(const char *file_name) false); /* load_all_shares*/ } +/** + * lp_load wrapper, especially for clients + */ +bool lp_load_client(const char *file_name) +{ + lp_set_in_client(true); + + return lp_load_global_only(file_name); +} + bool lp_load_with_registry_shares(const char *pszFname, bool global_only, bool save_defaults, |