Skip to content

Commit

Permalink
Fixed issue with Golang calling fstat on Linux causing crash
Browse files Browse the repository at this point in the history
  • Loading branch information
aviramha committed Feb 22, 2024
1 parent 829fa50 commit b3561e2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions changelog.d/2254.fixed.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Fixed issue with Golang calling fstat on Linux causing crash
4 changes: 2 additions & 2 deletions mirrord/layer/src/file/hooks.rs
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ use crate::{
ops::{access, lseek, open, read, write},
},
hooks::HookManager,
replace, replace_with_fallback,
replace,
};

#[cfg(target_os = "macos")]
Expand Down Expand Up @@ -1212,7 +1212,7 @@ pub(crate) unsafe fn enable_file_hooks(hook_manager: &mut HookManager) {
FN___LXSTAT64
);
replace!(hook_manager, "lstat", lstat_detour, FnLstat, FN_LSTAT);
replace_with_fallback!(
crate::replace_with_fallback!(
hook_manager,
"fstat",
fstat_detour,
Expand Down

0 comments on commit b3561e2

Please sign in to comment.