Skip to content

Commit

Permalink
Fix rmdir on go
Browse files Browse the repository at this point in the history
  • Loading branch information
facundopoblete committed Dec 19, 2024
1 parent 804e0ee commit 66ad7b8
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,
libc::SYS_rmdir => rmdir_detour(param1 as _) as i64,
_ => {
let (Ok(result) | Err(result)) = syscalls::syscall!(
syscalls::Sysno::from(syscall as i32),
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,
libc::SYS_rmdir => rmdir_detour(param1 as _) as i64,

Check failure on line 116 in mirrord/layer/src/go/mod.rs

View workflow job for this annotation

GitHub Actions / lint

cannot find unit struct, unit variant or constant `SYS_rmdir` in crate `libc`
_ => {
let (Ok(result) | Err(result)) = syscalls::syscall!(
syscalls::Sysno::from(syscall as i32),
Expand Down

0 comments on commit 66ad7b8

Please sign in to comment.