samba-cvs.cvs
[Top] [All Lists]

svn commit: samba r13610 - in branches/SAMBA_3_0/source/param: .

Subject: svn commit: samba r13610 - in branches/SAMBA_3_0/source/param: .
From:
Date: Wed, 22 Feb 2006 01:31:45 +0000 GMT
Author: jra
Date: 2006-02-22 01:31:43 +0000 (Wed, 22 Feb 2006)
New Revision: 13610

WebSVN: 
http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=13610

Log:
Patch from Bjoern JACKE <samba@xxxxxx>. 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.

Modified:
   branches/SAMBA_3_0/source/param/loadparm.c


Changeset:
Modified: branches/SAMBA_3_0/source/param/loadparm.c
===================================================================
--- branches/SAMBA_3_0/source/param/loadparm.c  2006-02-22 01:31:35 UTC (rev 
13609)
+++ branches/SAMBA_3_0/source/param/loadparm.c  2006-02-22 01:31:43 UTC (rev 
13610)
@@ -2929,10 +2929,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. */

<Prev in Thread] Current Thread [Next in Thread>
  • svn commit: samba r13610 - in branches/SAMBA_3_0/source/param: ., jra <=