Skip to content
Snippets Groups Projects
Unverified Commit a86a28e3 authored by bors[bot]'s avatar bors[bot] Committed by GitHub
Browse files

Merge #682


682: improve debug messages r=stlankes a=stlankes



Co-authored-by: Stefan Lankes's avatarStefan Lankes <slankes@eonerc.rwth-aachen.de>
parents caa59e17 61a5a1b7
Branches
Tags
No related merge requests found
Pipeline #942105 passed
...@@ -167,15 +167,18 @@ fn open_flags_to_perm(flags: i32, mode: u32) -> FilePerms { ...@@ -167,15 +167,18 @@ fn open_flags_to_perm(flags: i32, mode: u32) -> FilePerms {
// mode is passed in as hex (0x777). Linux/Fuse expects octal (0o777). // mode is passed in as hex (0x777). Linux/Fuse expects octal (0o777).
// just passing mode as is to FUSE create, leads to very weird permissions: 0b0111_0111_0111 -> 'r-x rwS rwt' // just passing mode as is to FUSE create, leads to very weird permissions: 0b0111_0111_0111 -> 'r-x rwS rwt'
// TODO: change in stdlib // TODO: change in stdlib
let mode = let mode = match mode {
match mode { 0x777 => 0o777,
0x777 => 0o777, 0o777 => 0o777,
0 => 0, 0 => 0,
_ => { _ => {
info!("Mode neither 777 nor 0, should never happen with current hermit stdlib! Using 777"); info!(
0o777 "Mode {:#X} should never happen with current hermit stdlib! Using 777",
} mode
}; );
0o777
}
};
let mut perms = FilePerms { let mut perms = FilePerms {
raw: flags as u32, raw: flags as u32,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment