#4968: openTempFile fails on Windows if a directory exists with the file name it
tries
-------------------------------+--------------------------------------------
    Reporter:  ganesh          |       Owner:  pcapriotti                 
        Type:  bug             |      Status:  patch                      
    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:                  |  
-------------------------------+--------------------------------------------

Comment(by pcapriotti):

 I wrote this [example program https://gist.github.com/2889480] to check
 whether using the native windows API would make a difference, but
 `CreateFile` has the same problem, and returns EACCES when trying to
 overwrite a directory.

 Anyway, I'll go ahead with the patch for now.

-- 
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/4968#comment:12>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler

_______________________________________________
Glasgow-haskell-bugs mailing list
Glasgow-haskell-bugs@haskell.org
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs

Reply via email to