aboutsummaryrefslogtreecommitdiffhomepage
path: root/System/Posix/Files.hsc
diff options
context:
space:
mode:
Diffstat (limited to 'System/Posix/Files.hsc')
-rw-r--r--System/Posix/Files.hsc3
1 files changed, 2 insertions, 1 deletions
diff --git a/System/Posix/Files.hsc b/System/Posix/Files.hsc
index 1822294..6aea6a9 100644
--- a/System/Posix/Files.hsc
+++ b/System/Posix/Files.hsc
@@ -154,7 +154,8 @@ access name flags =
if (r == 0)
then return True
else do err <- getErrno
- if (err == eACCES || err == eROFS || err == eTXTBSY)
+ if (err == eACCES || err == eROFS || err == eTXTBSY ||
+ err == ePERM)
then return False
else throwErrnoPath "fileAccess" name