[SCM] Samba Shared Repository - branch master updated

Michael Adam obnox at samba.org
Sun Aug 22 14:57:38 MDT 2010


The branch, master has been updated
       via  d8734c3... s3:param Clarify parameter name on init_globals()
      from  8531921... s3: Turn two macros into functions

http://gitweb.samba.org/?p=samba.git;a=shortlog;h=master


- Log -----------------------------------------------------------------
commit d8734c3c03ca3cd501b064c5f3b4684e62e751d6
Author: Andrew Bartlett <abartlet at samba.org>
Date:   Fri Aug 20 17:51:48 2010 +1000

    s3:param Clarify parameter name on init_globals()
    
    This parameter is used with the registry backend to
    cause the globals table to be re-initialised.
    
    Andrew Bartlett
    
    Signed-off-by: Michael Adam <obnox at samba.org>

-----------------------------------------------------------------------

Summary of changes:
 source3/param/loadparm.c |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)


Changeset truncated at 500 lines:

diff --git a/source3/param/loadparm.c b/source3/param/loadparm.c
index 340031b..225f6c9 100644
--- a/source3/param/loadparm.c
+++ b/source3/param/loadparm.c
@@ -4947,14 +4947,14 @@ static void free_global_parameters(void)
  Initialise the global parameter structure.
 ***************************************************************************/
 
-static void init_globals(bool first_time_only)
+static void init_globals(bool reinit_globals)
 {
 	static bool done_init = False;
 	char *s = NULL;
 	int i;
 
         /* If requested to initialize only once and we've already done it... */
-        if (first_time_only && done_init) {
+        if (!reinit_globals && done_init) {
                 /* ... then we have nothing more to do */
                 return;
         }
@@ -9181,7 +9181,7 @@ static bool lp_load_ex(const char *pszFname,
 	bGlobalOnly = global_only;
 	bAllowIncludeRegistry = allow_include_registry;
 
-	init_globals(! initialize_globals);
+	init_globals(initialize_globals);
 	debug_init();
 
 	free_file_list();
@@ -9229,7 +9229,7 @@ static bool lp_load_ex(const char *pszFname,
 			/* start over */
 			DEBUG(1, ("lp_load_ex: changing to config backend "
 				  "registry\n"));
-			init_globals(false);
+			init_globals(true);
 			lp_kill_all_services();
 			return lp_load_ex(pszFname, global_only, save_defaults,
 					  add_ipc, initialize_globals,


-- 
Samba Shared Repository


More information about the samba-cvs mailing list