File tree Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -69,7 +69,7 @@ export interface FileSystemMetadata {
69
69
* These are used by the VFS for optimizations.
70
70
* - setid: The FS supports setuid and setgid when creating files and directories.
71
71
*/
72
- features : ( 'setid' | '' ) [ ] ;
72
+ features ? : ( 'setid' | '' ) [ ] ;
73
73
}
74
74
75
75
/**
Original file line number Diff line number Diff line change @@ -509,7 +509,7 @@ unlink satisfies typeof promises.unlink;
509
509
* Manually apply setuid/setgid.
510
510
*/
511
511
async function applySetId ( file : File , uid : number , gid : number ) {
512
- if ( file . fs . metadata ( ) . features . includes ( 'setid' ) ) return ;
512
+ if ( file . fs . metadata ( ) . features ? .includes ( 'setid' ) ) return ;
513
513
514
514
const parent = await file . fs . stat ( dirname ( file . path ) ) ;
515
515
await file . chown (
Original file line number Diff line number Diff line change @@ -127,7 +127,7 @@ unlinkSync satisfies typeof fs.unlinkSync;
127
127
* Manually apply setuid/setgid.
128
128
*/
129
129
function applySetId ( file : File , uid : number , gid : number ) {
130
- if ( file . fs . metadata ( ) . features . includes ( 'setid' ) ) return ;
130
+ if ( file . fs . metadata ( ) . features ? .includes ( 'setid' ) ) return ;
131
131
132
132
const parent = file . fs . statSync ( dirname ( file . path ) ) ;
133
133
file . chownSync (
You can’t perform that action at this time.
0 commit comments