From 42beddc99143ac615b4d5aafb508a018dda144f0 Mon Sep 17 00:00:00 2001 From: Michael Adam Date: Thu, 15 May 2008 02:39:45 +0200 Subject: 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) --- source3/param/loadparm.c | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'source3/param/loadparm.c') 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. ***************************************************************************/ -- cgit