summaryrefslogtreecommitdiff
path: root/libtrivfs
diff options
context:
space:
mode:
Diffstat (limited to 'libtrivfs')
-rw-r--r--libtrivfs/fsys-getroot.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libtrivfs/fsys-getroot.c b/libtrivfs/fsys-getroot.c
index 6a8a679b..d91b9fa8 100644
--- a/libtrivfs/fsys-getroot.c
+++ b/libtrivfs/fsys-getroot.c
@@ -60,7 +60,7 @@ trivfs_S_fsys_getroot (struct trivfs_control *cntl,
if ((flags & O_WRITE & trivfs_allow_open) != (flags & O_WRITE))
return EROFS;
- if ((flags & (O_READ_WRITE|O_EXEC) & trivfs_allow_open)
+ if ((flags & (O_READ|O_WRITE|O_EXEC) & trivfs_allow_open)
!= (flags & (O_READ|O_WRITE|O_EXEC)))
return EACCES;