Commit 48a6e9fd authored by Gerald Carter's avatar Gerald Carter Committed by Gerald (Jerry) Carter
Browse files

r1212: small change to prevent home directories added during the...

r1212: small change to prevent home directories added during the SMBsesssetup&X tfrom being removed as unused services
(This used to be commit 951a88519467736fffd80ff962f1df71b04c9c2f)
parent 5db731d8
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -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]);