fs: fix other case where we're comparing Flags to 0

This commit is contained in:
Brad Fitzpatrick 2013-12-26 14:11:20 -08:00
parent 3f7dde054c
commit 55955a7734
1 changed files with 1 additions and 1 deletions

View File

@ -527,7 +527,7 @@ func (n *mutFile) Open(req *fuse.OpenRequest, res *fuse.OpenResponse, intr fuse.
res.Flags &= ^fuse.OpenDirectIO
// Read-only.
if req.Flags == 0 {
if !isWriteFlags(req.Flags) {
mutFileOpenRO.Incr()
log.Printf("mutFile.Open returning read-only file")
n := &node{