fs: typo. return read-only file by looking at req flags, not res flags.

Change-Id: I2093f381b99c6ef55a20b88e0bcaade97a3529c7
This commit is contained in:
Brad Fitzpatrick 2013-07-21 18:36:21 -07:00
parent 98eb69b5e1
commit 33bbd23e32
1 changed files with 1 additions and 1 deletions

View File

@ -368,7 +368,7 @@ func (n *mutFile) Open(req *fuse.OpenRequest, res *fuse.OpenResponse, intr fuse.
}
// Read-only.
if res.Flags == 0 {
if req.Flags == 0 {
log.Printf("mutFile.Open returning read-only file")
n := &node{
fs: n.fs,