diff options
Diffstat (limited to 'ripple/minitrace/src')
-rw-r--r-- | ripple/minitrace/src/main.rs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/ripple/minitrace/src/main.rs b/ripple/minitrace/src/main.rs index ee09c99..bdf957d 100644 --- a/ripple/minitrace/src/main.rs +++ b/ripple/minitrace/src/main.rs @@ -286,7 +286,9 @@ fn check_syscall(process: &Process, entry: SyscallEntry) -> bool { 257 => { let [dirfd, pathname, flags, _mode, ..] = entry.args; - if dirfd.try_into() == Ok(AT_FDCWD) { + let dirfd = u32::try_from(dirfd).map(|x| x as i32); + + if dirfd != Ok(AT_FDCWD) { return false; } |