mirror of
https://github.com/osnr/TabFS.git
synced 2024-06-17 05:05:00 +02:00
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] = {
|
router[key] = {
|
||||||
async getattr() {
|
async getattr() {
|
||||||
return {
|
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_nlink: 1,
|
||||||
st_size: 100 // FIXME
|
st_size: 100 // FIXME
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue