We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 021faac + ef6b736 commit d8e5decCopy full SHA for d8e5dec
src/fd/mod.rs
@@ -164,23 +164,6 @@ fn uhyve_send<T>(port: u16, data: &mut T) {
164
}
165
166
fn open_flags_to_perm(flags: i32, mode: u32) -> FilePerms {
167
- // mode is passed in as hex (0x777). Linux/Fuse expects octal (0o777).
168
- // just passing mode as is to FUSE create, leads to very weird permissions: 0b0111_0111_0111 -> 'r-x rwS rwt'
169
- // TODO: change in stdlib
170
- #[cfg(not(feature = "newlib"))]
171
- let mode = match mode {
172
- 0x777 => 0o777,
173
- 0o777 => 0o777,
174
- 0 => 0,
175
- _ => {
176
- info!(
177
- "Mode {:#X} should never happen with current hermit stdlib! Using 0o777",
178
- mode
179
- );
180
- 0o777
181
- }
182
- };
183
-
184
let mut perms = FilePerms {
185
raw: flags as u32,
186
mode,
0 commit comments