summary refs log tree commit diff
path: root/ripple
diff options
context:
space:
mode:
authorV <v@unfathomable.blue>2022-02-08 02:53:30 +0000
committeredef <edef@unfathomable.blue>2022-02-08 02:53:30 +0000
commit3a20ef6840e457352d959baefb6635afe5d7759c (patch)
treed3d690bd7ec572a9490e52bdd35e0bb8019ef6e4 /ripple
parent852e87d8435e7e233ead323490ae4aa76935fd83 (diff)
downloadunf-legacy-3a20ef6840e457352d959baefb6635afe5d7759c.tar.zst
ripple/minitrace: clean up ioctl handling
TIOCGWINSZ was mistakenly listed as TCGETS, and parameter destructuring
got cleaned up.

Change-Id: I8dce783c50d34ab619cf7b05c9b705b5e11bc459
Diffstat (limited to 'ripple')
-rw-r--r--ripple/minitrace/src/main.rs15
1 files changed, 10 insertions, 5 deletions
diff --git a/ripple/minitrace/src/main.rs b/ripple/minitrace/src/main.rs
index be8ba6a..7f50f27 100644
--- a/ripple/minitrace/src/main.rs
+++ b/ripple/minitrace/src/main.rs
@@ -229,11 +229,16 @@ fn check_syscall(process: &Process, entry: SyscallEntry) -> bool {
 		13 => {}
 
 		// ioctl
-		16 => match entry.args[1] {
-			// TCGETS
-			0x5401 | 0x5413 => {}
-			_ => return false,
-		},
+		16 => {
+			let [_fd, command, ..] = entry.args;
+			match command {
+				// TCGETS
+				0x5401 => {}
+				// TIOCGWINSZ
+				0x5413 => {}
+				_ => return false,
+			}
+		}
 
 		// pread64
 		17 => {}