summaryrefslogtreecommitdiff
path: root/source3/param
diff options
context:
space:
mode:
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. */