mirror of https://github.com/osnr/TabFS.git
fix bug with write permission for files with autogen getattr
(fixes bug with writing to `TAB/active` from Emacs Lisp, which checks permission instead of just trying to write)
This commit is contained in:
parent
248d416c0c
commit
2215ba8e41
|
@ -633,7 +633,7 @@ for (let key in router) {
|
|||
router[key] = {
|
||||
async getattr() {
|
||||
return {
|
||||
st_mode: unix.S_IFREG | ((router[key].read && 0444) || (router[key].write && 0222)),
|
||||
st_mode: unix.S_IFREG | ((router[key].read && 0444) | (router[key].write && 0222)),
|
||||
st_nlink: 1,
|
||||
st_size: 100 // FIXME
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue