]> granicus.if.org Git - strace/commitdiff
2003-02-24 Roland McGrath <roland@redhat.com>
authorRoland McGrath <roland@redhat.com>
Mon, 24 Feb 2003 10:18:07 +0000 (10:18 +0000)
committerRoland McGrath <roland@redhat.com>
Mon, 24 Feb 2003 10:18:07 +0000 (10:18 +0000)
* process.c (sys_getresgid): Fix typos in argument access.

process.c

index e582424cec7564882e6f967612049bc0586b4769..8a36b6decd2565a7b78de4def9cfecb60be3a8e4 100644 (file)
--- 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);
                }