aboutsummaryrefslogtreecommitdiffstats
path: root/ports/unix/guts/access.c
diff options
context:
space:
mode:
Diffstat (limited to 'ports/unix/guts/access.c')
-rw-r--r--ports/unix/guts/access.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ports/unix/guts/access.c b/ports/unix/guts/access.c
index 1cc8d58..4725f49 100644
--- a/ports/unix/guts/access.c
+++ b/ports/unix/guts/access.c
@@ -21,7 +21,7 @@
if (buf.st_mode & 0111) {
return 0;
} else {
- errno = EPERM;
+ errno = EACCES;
return -1;
}
} else {