diff options
Diffstat (limited to 'example/hello.c')
-rw-r--r-- | example/hello.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/example/hello.c b/example/hello.c index 67932e0..8dec6ad 100644 --- a/example/hello.c +++ b/example/hello.c @@ -105,7 +105,7 @@ static int hello_open(const char *path, struct fuse_file_info *fi) if (strcmp(path+1, options.filename) != 0) return -ENOENT; - if ((fi->flags & 3) != O_RDONLY) + if ((fi->flags & O_ACCMODE) != O_RDONLY) return -EACCES; return 0; |