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

r1212: small change to prevent home directories added during the SMBsesssetup&X tfrom being removed as unused services

(This used to be commit 951a885194)
This commit is contained in:
Gerald Carter 2004-06-21 17:51:06 +00:00 committed by Gerald (Jerry) Carter
parent 5db731d899
commit 48a6e9fd76

View File

@ -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]);