Skip to content

Commit

Permalink
Merge pull request #1251 from hermit-os/mode-panic
Browse files Browse the repository at this point in the history
fix(fuse): potential panic on unknown mode bits
  • Loading branch information
stlankes authored Jun 5, 2024
2 parents 50d5cd0 + 7228300 commit 9881cfb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/fs/fuse.rs
Original file line number Diff line number Diff line change
Expand Up @@ -470,7 +470,7 @@ impl From<fuse_abi::Attr> for FileAttr {
FileAttr {
st_ino: attr.ino,
st_nlink: attr.nlink as u64,
st_mode: AccessPermission::from_bits(attr.mode).unwrap(),
st_mode: AccessPermission::from_bits_retain(attr.mode),
st_uid: attr.uid,
st_gid: attr.gid,
st_rdev: attr.rdev as u64,
Expand Down

0 comments on commit 9881cfb

Please sign in to comment.