Fix trace=set regression introduced by commit v4.7-111-g9cbc15b
* syscall.c (qual_syscall, qualify): Pass personality down to
qualify_one.
* tests/qual_syscall: New test.
* tests/Makefile.am (TESTS): Add qual_syscall.
diff --git a/syscall.c b/syscall.c
index 1f8bde1..3566a01 100644
--- a/syscall.c
+++ b/syscall.c
@@ -462,7 +462,7 @@
if (sysent_vec[p][i].sys_name
&& strcmp(s, sysent_vec[p][i].sys_name) == 0
) {
- qualify_one(i, bitflag, not, 0);
+ qualify_one(i, bitflag, not, p);
rc = 0;
}
}
@@ -575,7 +575,7 @@
for (pers = 0; pers < SUPPORTED_PERSONALITIES; pers++) {
for (i = 0; i < nsyscall_vec[pers]; i++)
if (sysent_vec[pers][i].sys_flags & n)
- qualify_one(i, opt->bitflag, not, 0);
+ qualify_one(i, opt->bitflag, not, pers);
}
continue;
}