patch: don't show /tmp/ if path is unset
Bjoern JACKE
samba at j3e.de
Thu Feb 2 12:16:53 GMT 2006
arrg ... applied is the correct version...
-------------- next part --------------
Index: source/param/loadparm.c
===================================================================
--- source/param/loadparm.c (Revision 13259)
+++ source/param/loadparm.c (Arbeitskopie)
@@ -2889,10 +2889,12 @@
}
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. */
More information about the samba-technical
mailing list