#2924: createDirectory: permission denied
------------------------------------+---------------------------------------
    Reporter:  simonmar             |        Owner:         
        Type:  bug                  |       Status:  new    
    Priority:  normal               |    Milestone:  6.12.1 
   Component:  libraries/directory  |      Version:  6.10.1 
    Severity:  normal               |   Resolution:         
    Keywords:                       |   Difficulty:  Unknown
    Testcase:                       |           Os:  Windows
Architecture:  x86                  |  
------------------------------------+---------------------------------------
Changes (by simonmar):

  * milestone:  6.12 branch => 6.12.1

Comment:

 I don't have a good idea how to proceed on this.  Can you supply a small
 test case based on your scenario that fails?

 The only thing I can think of on the GHC side that might be a factor here
 is our use of Win32 file sharing: we call `_sopen` with `SH_DENYRW` or
 `SH_DENYWR`, which translates into use of the
 `FILE_SHARING_READ`/`FILE_SHARING_WRITE` flags to `CreateFile`.  This is
 to implement the Haskell 98 single-writer multi-reader (mis-)feature.

 Look at `libraries/base/includes/HsBase.h`, `__hscore_open()`.  Of course
 we really ought to be using the Win32 API directly, but that's a separate
 issue; using crt functions should work.

 Once a Handle has been closed with `hClose` there's nothing left on the
 Haskell side of things - the finalizer will run a bit later, but it's a
 no-op on closed Handles, and doesn't make any OS calls.

-- 
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/2924#comment:5>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
_______________________________________________
Glasgow-haskell-bugs mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs

Reply via email to