mirror of https://github.com/perkeep/perkeep.git
fs: fix other case where we're comparing Flags to 0
This commit is contained in:
parent
3f7dde054c
commit
55955a7734
|
@ -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{
|
||||
|
|
Loading…
Reference in New Issue