From: Roland McGrath Date: Mon, 24 Feb 2003 07:13:51 +0000 (+0000) Subject: 2003-02-23 Roland McGrath X-Git-Tag: v4.5.18~814 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=9bd6b4234b8dadc2ea4165594dcf6ec612c5abca;p=strace 2003-02-23 Roland McGrath * process.c (sys_getresuid): Fix typos in argument access. Reported by Anton Blanchard . --- diff --git a/process.c b/process.c index 30d1545b..e582424c 100644 --- a/process.c +++ b/process.c @@ -1092,12 +1092,12 @@ sys_getresuid(tcp) tprintf("%#lx, ", tcp->u_arg[0]); else tprintf("ruid %lu, ", (unsigned long) uid); - if (umove(tcp, tcp->u_arg[0], &uid) < 0) - tprintf("%#lx, ", tcp->u_arg[0]); + if (umove(tcp, tcp->u_arg[1], &uid) < 0) + tprintf("%#lx, ", tcp->u_arg[1]); else tprintf("euid %lu, ", (unsigned long) uid); - if (umove(tcp, tcp->u_arg[0], &uid) < 0) - tprintf("%#lx", tcp->u_arg[0]); + if (umove(tcp, tcp->u_arg[2], &uid) < 0) + tprintf("%#lx", tcp->u_arg[2]); else tprintf("suid %lu", (unsigned long) uid); }