From: Michael Adam Date: Thu, 15 May 2008 00:39:45 +0000 (+0200) Subject: loadparm: add funcion lp_load_with_registry_shares(). X-Git-Tag: samba-3.3.0pre1~1238 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=b387c614ba8d1d3960f6917f03f0fd433cf2b2ee;p=thirdparty%2Fsamba.git 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 --- diff --git a/source/param/loadparm.c b/source/param/loadparm.c index 5c6cd071b7f..e45c8b89b75 100644 --- a/source/param/loadparm.c +++ b/source/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. ***************************************************************************/