aboutsummaryrefslogtreecommitdiffstats
path: root/example/poll.c
diff options
context:
space:
mode:
authorAlan Somers <asomers@gmail.com>2019-03-08 14:24:50 -0700
committerNikolaus Rath <Nikolaus@rath.org>2019-03-08 21:24:50 +0000
commit1b7d2b886265daa5527f487c1b6e86d006574ac4 (patch)
tree2c936ff4a30e660b93e0399e40689e478ed0758e /example/poll.c
parent06a31dece06792fd70fe2b4353f65df02f13549e (diff)
downloadlibfuse-1b7d2b886265daa5527f487c1b6e86d006574ac4.tar.gz
Document fuse_fsync_in.fsync_flags and remove magic numbers (#375)
Diffstat (limited to 'example/poll.c')
-rw-r--r--example/poll.c2
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;