From 1b7d2b886265daa5527f487c1b6e86d006574ac4 Mon Sep 17 00:00:00 2001 From: Alan Somers Date: Fri, 8 Mar 2019 14:24:50 -0700 Subject: Document fuse_fsync_in.fsync_flags and remove magic numbers (#375) --- example/poll.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'example/poll.c') 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; -- cgit v1.2.3