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