File tree 1 file changed +12
-9
lines changed
1 file changed +12
-9
lines changed Original file line number Diff line number Diff line change @@ -167,15 +167,18 @@ fn open_flags_to_perm(flags: i32, mode: u32) -> FilePerms {
167
167
// mode is passed in as hex (0x777). Linux/Fuse expects octal (0o777).
168
168
// just passing mode as is to FUSE create, leads to very weird permissions: 0b0111_0111_0111 -> 'r-x rwS rwt'
169
169
// TODO: change in stdlib
170
- let mode =
171
- match mode {
172
- 0x777 => 0o777 ,
173
- 0 => 0 ,
174
- _ => {
175
- info ! ( "Mode neither 777 nor 0, should never happen with current hermit stdlib! Using 777" ) ;
176
- 0o777
177
- }
178
- } ;
170
+ let mode = match mode {
171
+ 0x777 => 0o777 ,
172
+ 0o777 => 0o777 ,
173
+ 0 => 0 ,
174
+ _ => {
175
+ info ! (
176
+ "Mode {:#X} should never happen with current hermit stdlib! Using 777" ,
177
+ mode
178
+ ) ;
179
+ 0o777
180
+ }
181
+ } ;
179
182
180
183
let mut perms = FilePerms {
181
184
raw : flags as u32 ,
You can’t perform that action at this time.
0 commit comments