[darcs-devel] [issue2025] darcs creates temp files in current directory
Kari Hoijarvi
bugs at darcs.net
Thu Dec 23 18:57:41 UTC 2010
Kari Hoijarvi <hoijarvi at seas.wustl.edu> added the comment:
Steps 1..3 are correct. It looks like this is a haskell runtime issue,
since getTemporaryDirectory should honor windows settings, which are
TEMP=C:\DOCUME~1\hoijarvi.KKH\LOCALS~1\Temp and
TMP=C:\DOCUME~1\hoijarvi.KKH\LOCALS~1\Temp, duplicate due to past
conflicting conventions and 8.3 style filenames due to MS program
managers putting spaces to pathnames.
At least I assume getTemporaryDirectory is from haskell, not darcs. In
that case, the haskell runtime should be fixed, or if not possible,
darcs windows version should call win32 GetTempPath(),
GetTempFilePhysicalPath() or GetTempFileName()
Anyway, creating temporary files in current directory is a really bad
idea and should be avoided is possible.
__________________________________
Darcs bug tracker <bugs at darcs.net>
<http://bugs.darcs.net/issue2025>
__________________________________
More information about the darcs-devel
mailing list