@@ -97,7 +97,7 @@ class FuseManager extends EventEmitter {
97
97
if ( ! match . groups [ 'key' ] ) {
98
98
if ( op === 'readdir' ) return cb ( 0 , [ ] )
99
99
if ( op === 'releasedir' ) return cb ( 0 )
100
- if ( op === 'getattr' ) return cb ( 0 , Stat . directory ( ) )
100
+ if ( op === 'getattr' ) return cb ( 0 , Stat . directory ( { uid : process . getuid ( ) , gid : process . getgid ( ) } ) )
101
101
return handlers [ op ] . apply ( null , [ ...args , cb ] )
102
102
}
103
103
@@ -154,7 +154,7 @@ class FuseManager extends EventEmitter {
154
154
handler : ( op , match , args , cb ) => {
155
155
// If this is a stat on '/stats', return a directory stat.
156
156
if ( ! match [ 'key' ] ) {
157
- if ( op === 'getattr' ) return cb ( 0 , Stat . directory ( ) )
157
+ if ( op === 'getattr' ) return cb ( 0 , Stat . directory ( { uid : process . getuid ( ) , gid : process . getgid ( ) } ) )
158
158
return handlers [ op ] . apply ( null , [ ...args , cb ] )
159
159
}
160
160
@@ -171,7 +171,7 @@ class FuseManager extends EventEmitter {
171
171
handler : ( op , match , args , cb ) => {
172
172
// If this is a stat on '/active', return a directory stat.
173
173
if ( ! match . groups [ 'key' ] ) {
174
- if ( op === 'getattr' ) return cb ( 0 , Stat . directory ( ) )
174
+ if ( op === 'getattr' ) return cb ( 0 , Stat . directory ( { uid : process . getuid ( ) , gid : process . getgid ( ) } ) )
175
175
return handlers [ op ] . apply ( null , [ ...args , cb ] )
176
176
}
177
177
0 commit comments