[GHC] #1874: getDirectoryContents yields "invalid argument" instead of "permission error"

GHC trac at galois.com
Mon Nov 19 06:43:20 EST 2007


#1874: getDirectoryContents yields "invalid argument" instead of "permission
error"
------------------------------------------------------------------+---------
 Reporter:  Orphi                                                 |          Owner:             
     Type:  bug                                                   |         Status:  new        
 Priority:  normal                                                |      Milestone:  6.10 branch
Component:  libraries (other)                                     |        Version:  6.8.1      
 Severity:  normal                                                |     Resolution:             
 Keywords:                                                        |     Difficulty:  Unknown    
 Testcase:  getDirectoryContents "C:\\System Volume Information"  |   Architecture:  x86        
       Os:  Windows                                               |  
------------------------------------------------------------------+---------
Comment (by Orphi):

 Have I missed something? According to the documentation for
 `getDirectoryContents`, it ''should'' give a permission error if you don't
 have permission. Where do we require an interface change?

 [http://haskell.org/ghc/docs/6.8.1/html/libraries/directory-1.0.0.0
 /System-Directory.html#v%3AgetDirectoryContents]

 As far as mirroring the OS... yeah, sadly I can believe that.

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


More information about the Glasgow-haskell-bugs mailing list