summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--ripple/minitrace/src/main.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/ripple/minitrace/src/main.rs b/ripple/minitrace/src/main.rs
index 34c503c..c63cd88 100644
--- a/ripple/minitrace/src/main.rs
+++ b/ripple/minitrace/src/main.rs
@@ -297,7 +297,7 @@ fn check_syscall(entry: &SyscallEntry) -> bool {
 			prot: _,
 			flags,
 			fd,
-			off: _,
+			off,
 		} => {
 			if addr % 4096 != 0 {
 				return false;
@@ -305,7 +305,7 @@ fn check_syscall(entry: &SyscallEntry) -> bool {
 
 			match fd {
 				None => {
-					return flags.contains(MapFlags::ANONYMOUS);
+					return flags.contains(MapFlags::ANONYMOUS) && off == 0;
 				}
 				Some(_) => {
 					return flags.intersection(MapFlags::PRIVATE | MapFlags::ANONYMOUS)