aboutsummaryrefslogtreecommitdiff
path: root/sys/libn/io.c
diff options
context:
space:
mode:
authorNicholas Noll <nbnoll@eml.cc>2020-05-17 18:28:05 -0700
committerNicholas Noll <nbnoll@eml.cc>2020-05-17 18:28:05 -0700
commit23ac1f4f98accc3bb84e81be264d8408be372028 (patch)
treed3876d6d5ce73c9f0669ec3f0c04c3a7524ec91e /sys/libn/io.c
parent9ec5bed6a7d715ffa69851569485a685dd69db2e (diff)
fix: bugs associated to map reallocating
Diffstat (limited to 'sys/libn/io.c')
-rw-r--r--sys/libn/io.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/libn/io.c b/sys/libn/io.c
index 2852f42..08c29b0 100644
--- a/sys/libn/io.c
+++ b/sys/libn/io.c
@@ -25,7 +25,7 @@ io·stat(Stream *s, io·Stat *buf)
int
io·exists(byte *path, int flag)
{
- return access(path, flag);
+ return access(path, flag) == 0;
}
error