Commit 1463a81a authored by Han-Wen Nienhuys's avatar Han-Wen Nienhuys

UnionFs: make all files appear writable.

This eases editing files with editors.
parent 88feb302
......@@ -168,11 +168,8 @@ func (me *UnionFs) getBranchAttrNoCache(name string) branchResult {
a, s := fs.GetAttr(name)
if s.Ok() {
if a.Mode&fuse.S_IFDIR != 0 {
// Make all directories appear writable
a.Mode |= 0200
}
// Make all files appear writable
a.Mode |= 0222
return branchResult{
attr: a,
code: s,
......
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