Skip to content

Commit 795e246

Browse files
committed
debug
1 parent a2e2c32 commit 795e246

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

crates/fspy_preload_unix/src/interceptions/linux_syscall.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
1-
use std::ffi::{c_char, c_long};
2-
31
use fspy_shared::ipc::AccessMode;
2+
use libc::{c_char, c_int, c_long};
43

54
use crate::{
65
client::{convert::PathAt, handle_open},
@@ -19,7 +18,8 @@ unsafe extern "C" fn syscall(syscall_no: c_long, mut args: ...) -> c_long {
1918

2019
match syscall_no {
2120
libc::SYS_statx => {
22-
if let Ok(dirfd) = i32::try_from(a0) {
21+
dbg!((a0, a1));
22+
if let Ok(dirfd) = c_int::try_from(a0) {
2323
let pathname = a1 as *const c_char;
2424
unsafe {
2525
handle_open(PathAt(dirfd, pathname), AccessMode::Read);

0 commit comments

Comments
 (0)