Change another / to </> to avoid building paths containing \/
authorIan Lynagh <igloo@earth.li>
Tue, 18 May 2010 17:20:15 +0000 (17:20 +0000)
committerIan Lynagh <igloo@earth.li>
Tue, 18 May 2010 17:20:15 +0000 (17:20 +0000)
This will hopefully fix #2889.

compiler/main/SysTools.lhs

index ac1941d..c479a66 100644 (file)
@@ -500,7 +500,7 @@ getTempDir dflags@(DynFlags{tmpDir=tmp_dir})
        case lookupFM mapping tmp_dir of
            Nothing ->
                do x <- getProcessID
        case lookupFM mapping tmp_dir of
            Nothing ->
                do x <- getProcessID
-                  let prefix = tmp_dir ++ "/ghc" ++ show x ++ "_"
+                  let prefix = tmp_dir </> "ghc" ++ show x ++ "_"
                   let
                       mkTempDir :: Integer -> IO FilePath
                       mkTempDir x
                   let
                       mkTempDir :: Integer -> IO FilePath
                       mkTempDir x