Handle EROFS/ETXTBSY as permission denied in `fileAccess` (re #8741)
authorAlain O'Dea <alain.odea@verafin.com>
Wed, 5 Feb 2014 21:24:28 +0000 (21:24 +0000)
committerAustin Seipp <austin@well-typed.com>
Fri, 28 Feb 2014 18:04:06 +0000 (12:04 -0600)
commit444750d2e5c6b843b937cbe876ce248e76a2a245
treeb90e9ffd6388295f20616e8aac35b66fdf9a815b
parent0eb7d4be2c20ecb5872db429855b94a704b285f5
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)
System/Posix/Files.hsc
changelog.md