Skip to content

Commit

Permalink
SYS_rmdir doesn't exist on aarch64
Browse files Browse the repository at this point in the history
  • Loading branch information
facundopoblete committed Dec 19, 2024
1 parent 66ad7b8 commit 8d2c41a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions mirrord/layer/src/go/linux_x64.rs
Original file line number Diff line number Diff line change
Expand Up @@ -344,6 +344,7 @@ unsafe extern "C" fn c_abi_syscall_handler(
#[cfg(all(target_os = "linux", not(target_arch = "aarch64")))]
libc::SYS_mkdir => mkdir_detour(param1 as _, param2 as _) as i64,
libc::SYS_mkdirat => mkdirat_detour(param1 as _, param2 as _, param3 as _) as i64,
#[cfg(all(target_os = "linux", not(target_arch = "aarch64")))]
libc::SYS_rmdir => rmdir_detour(param1 as _) as i64,
_ => {
let (Ok(result) | Err(result)) = syscalls::syscall!(
Expand Down
1 change: 1 addition & 0 deletions mirrord/layer/src/go/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,7 @@ unsafe extern "C" fn c_abi_syscall6_handler(
#[cfg(all(target_os = "linux", not(target_arch = "aarch64")))]
libc::SYS_mkdir => mkdir_detour(param1 as _, param2 as _) as i64,
libc::SYS_mkdirat => mkdirat_detour(param1 as _, param2 as _, param3 as _) as i64,
#[cfg(all(target_os = "linux", not(target_arch = "aarch64")))]
libc::SYS_rmdir => rmdir_detour(param1 as _) as i64,
_ => {
let (Ok(result) | Err(result)) = syscalls::syscall!(
Expand Down

0 comments on commit 8d2c41a

Please sign in to comment.