summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorMichael Adam <obnox@samba.org>2008-05-15 02:39:45 +0200
committerMichael Adam <obnox@samba.org>2008-05-15 02:42:41 +0200
commit42beddc99143ac615b4d5aafb508a018dda144f0 (patch)
tree9aaf85120cfe5222e19e152f926d066378e83042 /source3
parent0589c607a7998a93eb6e77e00e1238791f0d0133 (diff)
downloadsamba-42beddc99143ac615b4d5aafb508a018dda144f0.tar.gz
samba-42beddc99143ac615b4d5aafb508a018dda144f0.tar.bz2
samba-42beddc99143ac615b4d5aafb508a018dda144f0.zip
loadparm: add funcion lp_load_with_registry_shares().
This is like lp_load(), except that it will load the registry shares into the services aarray when registry shares are activated. Michael (This used to be commit b387c614ba8d1d3960f6917f03f0fd433cf2b2ee)
Diffstat (limited to 'source3')
-rw-r--r--source3/param/loadparm.c15
1 files changed, 15 insertions, 0 deletions
diff --git a/source3/param/loadparm.c b/source3/param/loadparm.c
index 5c6cd071b7..e45c8b89b7 100644
--- a/source3/param/loadparm.c
+++ b/source3/param/loadparm.c
@@ -8868,6 +8868,21 @@ bool lp_load_initial_only(const char *pszFname)
false);
}
+bool lp_load_with_registry_shares(const char *pszFname,
+ bool global_only,
+ bool save_defaults,
+ bool add_ipc,
+ bool initialize_globals)
+{
+ return lp_load_ex(pszFname,
+ global_only,
+ save_defaults,
+ add_ipc,
+ initialize_globals,
+ true,
+ true);
+}
+
/***************************************************************************
Reset the max number of services.
***************************************************************************/