revert a change to r1.397.2.91 because to operate like the docs; browseable for new...
authorGerald Carter <jerry@samba.org>
Thu, 28 Aug 2003 16:13:16 +0000 (16:13 +0000)
committerGerald Carter <jerry@samba.org>
Thu, 28 Aug 2003 16:13:16 +0000 (16:13 +0000)
(This used to be commit ea54bfc211f874c23b79572d8fb89bac73ec21a3)

source3/param/loadparm.c

index 79524c8b224019d30845b4358d85d10733b658d4..d672704c21f910f8ae0872523332a9c5129c49f7 100644 (file)
@@ -2311,6 +2311,10 @@ BOOL lp_add_home(const char *pszHomename, int iDefaultService,
                string_set(&ServicePtrs[i]->comment, comment);
        }
 
+       /* set the browseable flag from the gloabl default */
+
+       ServicePtrs[i]->bBrowseable = sDefault.bBrowseable;
+
        DEBUG(3, ("adding home's share [%s] for user '%s' at '%s'\n", pszHomename, 
               user, newHomedir));
        
@@ -2379,6 +2383,9 @@ BOOL lp_add_printer(const char *pszPrintername, int iDefaultService)
        string_set(&ServicePtrs[i]->szPrintername, pszPrintername);
        string_set(&ServicePtrs[i]->comment, comment);
 
+       /* set the browseable flag from the gloabl default */
+       ServicePtrs[i]->bBrowseable = sDefault.bBrowseable;
+
        /* Printers cannot be read_only. */
        ServicePtrs[i]->bRead_only = False;
        /* No share modes on printer services. */