[GHC] #4968: openTempFile fails on Windows if a directory exists with the file name it tries
GHC
cvs-ghc at haskell.org
Thu Jun 7 18:30:25 CEST 2012
#4968: openTempFile fails on Windows if a directory exists with the file name it
tries
-------------------------------+--------------------------------------------
Reporter: ganesh | Owner: pcapriotti
Type: bug | Status: merge
Priority: high | Milestone: 7.4.2
Component: libraries/base | Version: 7.0.1
Keywords: | Os: Windows
Architecture: x86_64 (amd64) | Failure: Incorrect result at runtime
Difficulty: Unknown | Testcase:
Blockedby: | Blocking:
Related: |
-------------------------------+--------------------------------------------
Changes (by pcapriotti):
* status: patch => merge
Comment:
Pushed:
{{{
commit 6172212097337923b621be9e12b3542c34cad10e
Author: Paolo Capriotti <p.capriotti at gmail.com>
Date: Thu Jun 7 11:18:00 2012 +0100
Allow openTempFile to retry when it hits a directory (#4968).
Windows returns an EACCES error instead of EEXIST when a call to
`open`
fails due to an existing directory, so add a special case for this
situation.
commit cd94cd74527ff3d812a083d903f68c1f9bd571b2
Author: Paolo Capriotti <p.capriotti at gmail.com>
Date: Thu Jun 7 10:51:27 2012 +0100
Refactor findTempName: factor out file creation.
Add openNewFile function, which creates a new file and returns a file
descriptor for it.
}}}
--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/4968#comment:13>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
More information about the Glasgow-haskell-bugs
mailing list