#8741: `System.Directory.getPermissions` fails on read-only filesystem -------------------------------------+------------------------------------- Reporter: hvr | Owner: AlainODea Type: bug | Status: closed Priority: high | Milestone: 7.8.1 Component: libraries/unix | Version: 7.8.1-rc1 Resolution: fixed | Keywords: Operating System: POSIX | Architecture: Unknown/Multiple Type of failure: Incorrect result | Difficulty: Easy (less than 1 at runtime | hour) Test Case: | Blocked By: Blocking: | Related Tickets: -------------------------------------+------------------------------------- Comment (by Austin Seipp <austin@…>): In [changeset:"444750d2e5c6b843b937cbe876ce248e76a2a245/unix"]: {{{ #!CommitTicketReference repository="unix" revision="444750d2e5c6b843b937cbe876ce248e76a2a245" Handle EROFS/ETXTBSY as permission denied in `fileAccess` (re #8741) This extends `System.Posix.Files.`access` to map EROFS & ETXTBSY to mean permission denied just like EACCESS. Based on a patch by Alain O'Dea and comments by Duncan Coutts Authored-by: Alain O'Dea <alain.odea@verafin.com> Signed-off-by: Herbert Valerio Riedel <hvr@gnu.org> (cherry picked from commit ecc92abad017cf12d8eb83509d4d57ae14ad47f9) }}} -- Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/8741#comment:11> GHC <http://www.haskell.org/ghc/> The Glasgow Haskell Compiler