[project @ 2001-08-23 12:50:13 by rrt]
authorrrt <unknown>
Thu, 23 Aug 2001 12:50:13 +0000 (12:50 +0000)
committerrrt <unknown>
Thu, 23 Aug 2001 12:50:13 +0000 (12:50 +0000)
On second thoughts, strip either a backslash or a slash, as if we read
an environment variable, we may well get a slash in the path; if we
get a result from GetTempPath, it'll probably have a backslash.

ghc/compiler/main/SysTools.lhs

index fee219f..ffa77e9 100644 (file)
@@ -277,6 +277,7 @@ initSysTools minusB_args
                  -- we only do this once).
                  tmpdir =
                    case last tdir of
+                     '/'  -> init tdir
                      '\\' -> init tdir
                      _   -> tdir
                setTmpDir tmpdir