summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--trans/ifsock.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/trans/ifsock.c b/trans/ifsock.c
index 4ed65898..af2376aa 100644
--- a/trans/ifsock.c
+++ b/trans/ifsock.c
@@ -143,7 +143,7 @@ S_ifsock_getsockaddr (struct trivfs_protid *cred,
return EOPNOTSUPP;
err = file_check_access (cred->realnode, &perms);
- if (!err && !(perms & O_READ))
+ if (!err && !(perms & O_WRITE))
err = EACCES;
if (!err)