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

GHC trac at galois.com
Thu May 22 04:21:46 EDT 2008


#1874: getDirectoryContents yields "invalid argument" instead of "permission
error"
------------------------------------------------------------------+---------
 Reporter:  Orphi                                                 |          Owner:             
     Type:  bug                                                   |         Status:  new        
 Priority:  lowest                                                |      Milestone:  6.8.3      
Component:  libraries/directory                                   |        Version:  6.8.1      
 Severity:  normal                                                |     Resolution:             
 Keywords:                                                        |     Difficulty:  Easy (1 hr)
 Testcase:  getDirectoryContents "C:\\System Volume Information"  |   Architecture:  x86        
       Os:  Windows                                               |  
------------------------------------------------------------------+---------
Comment (by Deewiant):

 One way is to use the Cygwin shell:
 {{{
 $ mkdir npd
 $ chmod goa-rwx npd
 }}}

 The other way is to use the Windows GUI. In Windows Explorer: create the
 directory, view its Properties (via right-click or File menu), go to the
 Security tab, and set "Full Control" to "Deny" for all groups and user
 names (I think setting any one which applies to you is sufficient, but I
 set all just in case).

 In either case, I get "invalid argument" out of `getDirectoryContents`.

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


More information about the Glasgow-haskell-bugs mailing list