summaryrefslogtreecommitdiff
path: root/source3/param
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2006-02-22 01:31:43 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 11:10:19 -0500
commitf5f37f6f8a83b017ebd4bb461cc291411581fe35 (patch)
treec499dd3b4e06e911de6ab07813c6f44b1a266d55 /source3/param
parentb5caff56ec0ecfbdd3f7ddd8b0a1d6bd617886b3 (diff)
downloadsamba-f5f37f6f8a83b017ebd4bb461cc291411581fe35.tar.gz
samba-f5f37f6f8a83b017ebd4bb461cc291411581fe35.tar.bz2
samba-f5f37f6f8a83b017ebd4bb461cc291411581fe35.zip
r13610: Patch from Bjoern JACKE <samba@j3e.de>. Don't default to
/tmp if there is no path in the share, make it unavailable. All printer shares should have a path and IPC$ is already explicitly set to tmpdir(). Jeremy. (This used to be commit b1915a0591d9842b4c95f527363a807e8a756697)
Diffstat (limited to 'source3/param')
-rw-r--r--source3/param/loadparm.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/source3/param/loadparm.c b/source3/param/loadparm.c
index b44fcfbd91..92719d9a3a 100644
--- a/source3/param/loadparm.c
+++ b/source3/param/loadparm.c
@@ -2929,10 +2929,12 @@ static BOOL service_ok(int iService)
}
if (ServicePtrs[iService]->szPath[0] == '\0' &&
- strwicmp(ServicePtrs[iService]->szService, HOMES_NAME) != 0) {
- DEBUG(0, ("No path in service %s - using %s\n",
- ServicePtrs[iService]->szService, tmpdir()));
- string_set(&ServicePtrs[iService]->szPath, tmpdir());
+ strwicmp(ServicePtrs[iService]->szService, HOMES_NAME) != 0 &&
+ ServicePtrs[iService]->szMSDfsProxy[0] == '\0'
+ ) {
+ DEBUG(0, ("WARNING: No path in service %s - making it unavailable!\n",
+ ServicePtrs[iService]->szService));
+ ServicePtrs[iService]->bAvailable = False;
}
/* If a service is flagged unavailable, log the fact at level 0. */