diff options
-rw-r--r-- | fuse/guestmount.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fuse/guestmount.c b/fuse/guestmount.c index bd7ba504..a9bf4e33 100644 --- a/fuse/guestmount.c +++ b/fuse/guestmount.c @@ -583,7 +583,7 @@ fg_open (const char *path, struct fuse_file_info *fi) { TRACE_CALL ("%s, 0%o", path, fi->flags); - int flags = fi->flags & 3; + int flags = fi->flags & O_ACCMODE; if (read_only && flags != O_RDONLY) return -EROFS; |