From 3d393502e7d9d40454c13dfc590ed0b16a74edaf Mon Sep 17 00:00:00 2001 From: Gerald Carter Date: Thu, 28 Aug 2003 16:13:16 +0000 Subject: revert a change to r1.397.2.91 because to operate like the docs; browseable for new home directories should be inheritied from the global defaults, not [homes] (This used to be commit ea54bfc211f874c23b79572d8fb89bac73ec21a3) --- source3/param/loadparm.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/source3/param/loadparm.c b/source3/param/loadparm.c index 79524c8b22..d672704c21 100644 --- a/source3/param/loadparm.c +++ b/source3/param/loadparm.c @@ -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. */ -- cgit