git.samba.org
/
tprouty
/
samba.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
af251f4
)
r1212: small change to prevent home directories added during the SMBsesssetup&X tfrom...
author
Gerald Carter
<jerry@samba.org>
Mon, 21 Jun 2004 17:51:06 +0000
(17:51 +0000)
committer
Gerald (Jerry) Carter
<jerry@samba.org>
Wed, 10 Oct 2007 15:51:59 +0000
(10:51 -0500)
source/param/loadparm.c
patch
|
blob
|
history
diff --git
a/source/param/loadparm.c
b/source/param/loadparm.c
index 5e959dbba3ccacc4bb8620101b57a515366efac4..a163caefc3580e8ef8f71efb1506a8cc9fef23db 100644
(file)
--- a/
source/param/loadparm.c
+++ b/
source/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]);