1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-27 03:21:53 +03:00

ensure that 'available = no' works for [homes]; reported by Walter Haidinger

This commit is contained in:
Gerald Carter 0001-01-01 00:00:00 +00:00
parent eb79272743
commit 1278d24961

View File

@ -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. */