[MLton-commit] r6915

Wesley Terpstra wesley at mlton.org
Wed Oct 8 15:48:50 PDT 2008


Newer cygwin's treat file names like "//foo/bar" as a network path. This is
trouble when we combine the volume "/" (cygwin virtual root) with a "/".


----------------------------------------------------------------------

U   mlton/trunk/basis-library/system/file-sys.sml

----------------------------------------------------------------------

Modified: mlton/trunk/basis-library/system/file-sys.sml
===================================================================
--- mlton/trunk/basis-library/system/file-sys.sml	2008-10-08 22:47:12 UTC (rev 6914)
+++ mlton/trunk/basis-library/system/file-sys.sml	2008-10-08 22:48:45 UTC (rev 6915)
@@ -83,7 +83,7 @@
                end
             (* If the volume is not empty, chDir to it rather than to "/" *)
             and gotoRoot (n, arcs, vol) =
-                (if vol <> "" 
+                (if vol <> "" andalso vol <> "/"
                     then chDir (vol ^ (if isMinGW then "\\" else "/"))
                  else chDir "/"
                  ; walkPath (n, [], arcs, vol))




More information about the MLton-commit mailing list