From: Roland McGrath Date: Mon, 24 Feb 2003 10:18:07 +0000 (+0000) Subject: 2003-02-24 Roland McGrath X-Git-Tag: v4.5.18~812 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=d245092e7fa8a72ab419542d85fab50554e6f9a7;p=strace 2003-02-24 Roland McGrath * process.c (sys_getresgid): Fix typos in argument access. --- diff --git a/process.c b/process.c index e582424c..8a36b6de 100644 --- a/process.c +++ b/process.c @@ -1119,12 +1119,12 @@ struct tcb *tcp; tprintf("%#lx, ", tcp->u_arg[0]); else tprintf("rgid %lu, ", (unsigned long) gid); - if (umove(tcp, tcp->u_arg[0], &gid) < 0) - tprintf("%#lx, ", tcp->u_arg[0]); + if (umove(tcp, tcp->u_arg[1], &gid) < 0) + tprintf("%#lx, ", tcp->u_arg[1]); else tprintf("egid %lu, ", (unsigned long) gid); - if (umove(tcp, tcp->u_arg[0], &gid) < 0) - tprintf("%#lx", tcp->u_arg[0]); + if (umove(tcp, tcp->u_arg[2], &gid) < 0) + tprintf("%#lx", tcp->u_arg[2]); else tprintf("sgid %lu", (unsigned long) gid); }