Accept EPERM as valid error code for access(2)
authorClemens Lang <neverpanic@gmail.com>
Sun, 21 Sep 2014 15:49:16 +0000 (17:49 +0200)
committerClemens Lang <neverpanic@gmail.com>
Sun, 21 Sep 2014 15:49:16 +0000 (17:49 +0200)
commit3a0c0fe1c8b2242250735675b64114fadbfc0aee
tree5c09043fa531053158af1e0f7cc07b84d26a2679
parent5c5484c8006f3df63d4cfb640f947f6391ea192f
Accept EPERM as valid error code for access(2)

This is useful on OS X when its sandboxing mechanism is used, because
that will set errno = EPERM when a file can't be written due to
sandboxing (as opposed to setting it to EACCES when file permissions
deny writing).
System/Posix/Files.hsc
System/Posix/Files/ByteString.hsc