diff options
author | Gerald Carter <jerry@samba.org> | 2003-08-28 16:13:16 +0000 |
---|---|---|
committer | Gerald Carter <jerry@samba.org> | 2003-08-28 16:13:16 +0000 |
commit | 3d393502e7d9d40454c13dfc590ed0b16a74edaf (patch) | |
tree | b6f206b7f2abd525fcdd02f9ddeb142b3291e5ed | |
parent | 53a2778363b46d49eca216a5dd27f019eb73f09b (diff) | |
download | samba-3d393502e7d9d40454c13dfc590ed0b16a74edaf.tar.gz samba-3d393502e7d9d40454c13dfc590ed0b16a74edaf.tar.bz2 samba-3d393502e7d9d40454c13dfc590ed0b16a74edaf.zip |
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)
-rw-r--r-- | source3/param/loadparm.c | 7 |
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. */ |