src/lib/portimpl.c 1.16

1.16 2010/04/21 19:23:47 galt
Tolerate double-slash in path
Index: src/lib/portimpl.c
===================================================================
RCS file: /projects/compbio/cvsroot/kent/src/lib/portimpl.c,v
retrieving revision 1.15
retrieving revision 1.16
diff -b -B -U 4 -r1.15 -r1.16
--- src/lib/portimpl.c	5 Feb 2009 20:34:45 -0000	1.15
+++ src/lib/portimpl.c	21 Apr 2010 19:23:47 -0000	1.16
@@ -129,8 +129,9 @@
     e = strchr(s, '/');
     if (e != NULL)
        *e++ = 0;
 
+    if (s[0]!=0) /* Tolerate double-slash in path, everyone else does it. */
     /* Cd there.  If that fails mkdir there and then cd there. */
     if (!maybeSetCurrentDir(s))
         {
 	if (!makeDir(s))