loadparm: add funcion lp_load_with_registry_shares().
authorMichael Adam <obnox@samba.org>
Thu, 15 May 2008 00:39:45 +0000 (02:39 +0200)
committerKarolin Seeger <kseeger@samba.org>
Wed, 16 Jul 2008 07:02:27 +0000 (09:02 +0200)
This is like lp_load(), except that it will load the
registry shares into the services aarray when registry
shares are activated.

Michael
(cherry picked from commit b387c614ba8d1d3960f6917f03f0fd433cf2b2ee)
(cherry picked from commit dc04efa42104100e677bccc307726106d8ca4b31)

source/param/loadparm.c

index fcacc829f2e1c767336c3480bf70f46a0dd4706a..959cc92e7c782a4436d1f38990146c67920691d1 100644 (file)
@@ -8880,6 +8880,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.
 ***************************************************************************/