Commit 324ea173 authored by Ivan Volosyuk's avatar Ivan Volosyuk

Fix incorrect Chmod operation on memnode

parent ffed29ec
......@@ -216,7 +216,7 @@ func (n *memNode) Utimens(file File, atime *time.Time, mtime *time.Time, context
}
func (n *memNode) Chmod(file File, perms uint32, context *fuse.Context) (code fuse.Status) {
n.info.Mode = (n.info.Mode ^ 07777) | perms
n.info.Mode = (n.info.Mode &^ 07777) | perms
now := time.Now()
n.info.SetTimes(nil, nil, &now)
return fuse.OK
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment