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

GHC cvs-ghc at haskell.org
Wed Mar 9 14:44:57 CET 2011


#1874: getDirectoryContents yields "invalid argument" instead of "permission
error"
------------------------+---------------------------------------------------
    Reporter:  Orphi    |         Type:  bug                                                 
      Status:  closed   |     Priority:  normal                                              
   Milestone:  _|_      |    Component:  libraries/directory                                 
     Version:  6.8.1    |   Resolution:  fixed                                               
    Keywords:           |     Testcase:  getDirectoryContents "C:\\System Volume Information"
   Blockedby:           |   Difficulty:  Moderate (less than a day)                          
          Os:  Windows  |     Blocking:                                                      
Architecture:  x86      |      Failure:  None/Unknown                                        
------------------------+---------------------------------------------------
Changes (by fryguybob):

 * cc: fryguybob@… (added)
  * status:  new => closed
  * resolution:  => fixed


Comment:

 Looks like this was addressed with the changes for #3300.

 libraries/directory:

  {{{
  Thu Jun 18 06:48:58 PDT 2009  Simon Marlow <marlo... at gmail.com>
    * Windows: Unicode getDirectoryContents and setPermissions
  }}}

 Both 7.0 and 7.1 work for me:

 {{{
 > getDirectoryContents "C:\\System Volume Information\\"
 *** Exception: C:\System Volume Information\: getDirectoryContents:
 permission denied (Access is denied.)
 }}}

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



More information about the Glasgow-haskell-bugs mailing list