diff options
author | Gerald Carter <jerry@samba.org> | 2004-06-21 17:51:06 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 10:51:59 -0500 |
commit | 48a6e9fd76a9af9fb459a66d0d1d895f412b7653 (patch) | |
tree | ec3de27e0535db9b54599e3e404e6f6de9d6afb3 /source3/param | |
parent | 5db731d899987d1a53e72f16b92b7e01eafd80c2 (diff) | |
download | samba-48a6e9fd76a9af9fb459a66d0d1d895f412b7653.tar.gz samba-48a6e9fd76a9af9fb459a66d0d1d895f412b7653.tar.bz2 samba-48a6e9fd76a9af9fb459a66d0d1d895f412b7653.zip |
r1212: small change to prevent home directories added during the SMBsesssetup&X tfrom being removed as unused services
(This used to be commit 951a88519467736fffd80ff962f1df71b04c9c2f)
Diffstat (limited to 'source3/param')
-rw-r--r-- | source3/param/loadparm.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/source3/param/loadparm.c b/source3/param/loadparm.c index 5e959dbba3..a163caefc3 100644 --- a/source3/param/loadparm.c +++ b/source3/param/loadparm.c @@ -2319,6 +2319,8 @@ BOOL lp_add_home(const char *pszHomename, int iDefaultService, ServicePtrs[i]->bBrowseable = sDefault.bBrowseable; + ServicePtrs[i]->autoloaded = True; + DEBUG(3, ("adding home's share [%s] for user '%s' at '%s'\n", pszHomename, user, newHomedir)); @@ -3699,6 +3701,10 @@ void lp_killunused(BOOL (*snumused) (int)) if (!VALID(i)) continue; + /* don't kill autoloaded services */ + if ( ServicePtrs[i]->autoloaded ) + continue; + if (!snumused || !snumused(i)) { ServicePtrs[i]->valid = False; free_service(ServicePtrs[i]); |