aboutsummaryrefslogtreecommitdiffstats
path: root/example/hello_ll.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/hello_ll.c
parent06a31dece06792fd70fe2b4353f65df02f13549e (diff)
downloadlibfuse-1b7d2b886265daa5527f487c1b6e86d006574ac4.tar.gz
Document fuse_fsync_in.fsync_flags and remove magic numbers (#375)
Diffstat (limited to 'example/hello_ll.c')
-rw-r--r--example/hello_ll.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/example/hello_ll.c b/example/hello_ll.c
index 97f3c50..51b452c 100644
--- a/example/hello_ll.c
+++ b/example/hello_ll.c
@@ -138,7 +138,7 @@ static void hello_ll_open(fuse_req_t req, fuse_ino_t ino,
{
if (ino != 2)
fuse_reply_err(req, EISDIR);
- else if ((fi->flags & 3) != O_RDONLY)
+ else if ((fi->flags & O_ACCMODE) != O_RDONLY)
fuse_reply_err(req, EACCES);
else
fuse_reply_open(req, fi);