summaryrefslogtreecommitdiff
path: root/source3/param/loadparm.c
diff options
context:
space:
mode:
Diffstat (limited to 'source3/param/loadparm.c')
-rw-r--r--source3/param/loadparm.c7
1 files changed, 7 insertions, 0 deletions
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. */