From ed087210169f7b2f8a0d378720a03e3f06d34dd4 Mon Sep 17 00:00:00 2001 From: Gerald Carter Date: Fri, 22 Aug 2003 12:50:53 +0000 Subject: ensure that 'available = no' works for [homes]; reported by Walter Haidinger (This used to be commit 1278d2496162c6427729a795dd940b9863261a6d) --- source3/param/loadparm.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/source3/param/loadparm.c b/source3/param/loadparm.c index 9f378a9424..83f85e9187 100644 --- a/source3/param/loadparm.c +++ b/source3/param/loadparm.c @@ -2312,8 +2312,6 @@ BOOL lp_add_home(const char *pszHomename, int iDefaultService, "Home directory of %s", user); string_set(&ServicePtrs[i]->comment, comment); } - ServicePtrs[i]->bAvailable = sDefault.bAvailable; - ServicePtrs[i]->bBrowseable = sDefault.bBrowseable; DEBUG(3, ("adding home's share [%s] for user '%s' at '%s'\n", pszHomename, user, newHomedir)); @@ -2382,7 +2380,7 @@ BOOL lp_add_printer(const char *pszPrintername, int iDefaultService) /* the printer name is set to the service name. */ string_set(&ServicePtrs[i]->szPrintername, pszPrintername); string_set(&ServicePtrs[i]->comment, comment); - ServicePtrs[i]->bBrowseable = sDefault.bBrowseable; +` /* Printers cannot be read_only. */ ServicePtrs[i]->bRead_only = False; /* No share modes on printer services. */ -- cgit