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:
parent
5db731d899
commit
48a6e9fd76
@ -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]);
|
||||
|
Loading…
Reference in New Issue
Block a user