r7531: Finally fix lp_load(). I had left hooks in place which restricted us
authorAndrew Bartlett <abartlet@samba.org>
Mon, 13 Jun 2005 10:54:18 +0000 (10:54 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 18:18:07 +0000 (13:18 -0500)
to globals only (no shares).

Andrew Bartlett

source/param/loadparm.c

index a546d5143844e0789662ffa7c4b8c2d0c755fb42..deb7d2284ff00418eb0647795f3578fd570b09ad 100644 (file)
@@ -2428,9 +2428,6 @@ BOOL lp_do_parameter(int snum, const char *pszParmName, const char *pszParmValue
 
 static BOOL do_parameter(const char *pszParmName, const char *pszParmValue)
 {
-       if (!bInGlobalSection)
-               return (True);
-
        return (lp_do_parameter(bInGlobalSection ? -2 : iServiceIndex,
                                pszParmName, pszParmValue));
 }
@@ -2631,9 +2628,6 @@ static BOOL do_section(const char *pszSectionName)
                return (True);
        }
 
-       if (!bInGlobalSection)
-               return (True);
-
        /* if we have a current service, tidy it up before moving on */
        bRetval = True;