diff options
Diffstat (limited to 'example/poll.c')
-rw-r--r-- | example/poll.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/example/poll.c b/example/poll.c index 8abca07..64917cc 100644 --- a/example/poll.c +++ b/example/poll.c @@ -115,7 +115,7 @@ static int fsel_open(const char *path, struct fuse_file_info *fi) if (idx < 0) return -ENOENT; - if ((fi->flags & 3) != O_RDONLY) + if ((fi->flags & O_ACCMODE) != O_RDONLY) return -EACCES; if (fsel_open_mask & (1 << idx)) return -EBUSY; |