From aa1460ff430169f6375567a7dce40ce81e39c667 Mon Sep 17 00:00:00 2001 From: guraga Date: Tue, 28 Mar 2017 22:57:23 +0700 Subject: [PATCH] hello.c: don't use constant instead of magic number --- example/hello.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.30.2