From fe10aa70a7668557e567339cf63adf84879c8123 Mon Sep 17 00:00:00 2001 From: Roland McGrath Date: Thu, 1 Nov 2007 21:52:20 +0000 Subject: [PATCH] 2007-09-22 Dmitry V. Levin * desc.c (sys_pselect6): Decode signal mask when entering syscall. Relax signal mask size check. --- desc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/desc.c b/desc.c index 43bab648..84602622 100644 --- a/desc.c +++ b/desc.c @@ -868,7 +868,7 @@ int sys_pselect6(struct tcb *tcp) { int rc = decode_select(tcp, tcp->u_arg, BITNESS_CURRENT); - if (exiting(tcp)) { + if (entering(tcp)) { struct { void *ss; unsigned long len; @@ -877,7 +877,7 @@ sys_pselect6(struct tcb *tcp) tprintf(", %#lx", tcp->u_arg[5]); else { tprintf(", {"); - if (data.len < sizeof(sigset_t)) + if (data.len < sizeof(long)) tprintf("%#lx", (long)data.ss); else print_sigset(tcp, (long)data.ss, 0);