Skip to content

Commit 433ad19

Browse files
committed
I'm crushing your head!
1 parent 8914ef0 commit 433ad19

5 files changed

Lines changed: 467 additions & 263 deletions

File tree

coms/fs.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ const{
3636
FS_TYPE,
3737
MOUNT_TYPE,
3838
SHM_TYPE,
39+
USERS_TYPE
3940
}=globals.fs;
4041
const{
4142
TEXT_EDITOR_APP,
@@ -760,12 +761,13 @@ async run(){
760761
err(`${parpath}: not a directory`);
761762
continue;
762763
}
763-
let OK_TYPES = [FS_TYPE, SHM_TYPE];
764+
let OK_TYPES = [FS_TYPE, SHM_TYPE, USERS_TYPE];
764765
if (!OK_TYPES.includes(parnode.type)) {
765766
err(`${fullpath}: the parent directory has an unsupported type: '${parnode.type}'`);
766767
continue;
767768
}
768-
if (!await fsapi.checkDirPerm(parnode)) {
769+
// if (!await fsapi.checkDirPerm(parnode)) {
770+
if (parnode.type === FS_TYPE && !await fsapi.checkDirPerm(parnode)) {
769771
err(`${fullpath}: permission denied`);
770772
continue;
771773
}

0 commit comments

Comments
 (0)