summary refs log tree commit diff
diff options
context:
space:
mode:
authorV <v@unfathomable.blue>2022-02-08 04:34:23 +0000
committeredef <edef@unfathomable.blue>2022-02-08 04:34:23 +0000
commit9fd5604718816bca09068e1505df919b5e54d8a6 (patch)
tree99d58e14840249c15e983cb2644fc39c88508003
parent565b80d348e288d29969a5c1d00827a8484d9e8b (diff)
downloadunf-legacy-9fd5604718816bca09068e1505df919b5e54d8a6.tar.zst
ripple/minitrace: clean up arch_prctl arg destructuring
Change-Id: I403062ce3570eac201612dcf083a8c670380f6a8
-rw-r--r--ripple/minitrace/src/main.rs13
1 files changed, 8 insertions, 5 deletions
diff --git a/ripple/minitrace/src/main.rs b/ripple/minitrace/src/main.rs
index e5bb1f0..ae1de7c 100644
--- a/ripple/minitrace/src/main.rs
+++ b/ripple/minitrace/src/main.rs
@@ -269,11 +269,14 @@ fn check_syscall(process: &Process, entry: SyscallEntry) -> bool {
 		100 => {}
 
 		// arch_prctl
-		158 => match entry.args[0] {
-			// ARCH_SET_FS
-			0x1002 => {}
-			_ => return false,
-		},
+		158 => {
+			let [command, _addr, ..] = entry.args;
+			match command {
+				// ARCH_SET_FS
+				0x1002 => {}
+				_ => return false,
+			}
+		}
 
 		// exit_group
 		231 => {}