]> granicus.if.org Git - sudo/commitdiff
Remove bogus call to update_child() and some cosmetic fixes
authorTodd C. Miller <Todd.Miller@courtesan.com>
Sat, 25 Sep 2004 20:15:44 +0000 (20:15 +0000)
committerTodd C. Miller <Todd.Miller@courtesan.com>
Sat, 25 Sep 2004 20:15:44 +0000 (20:15 +0000)
mon_systrace.c

index 523774be67561adbce8b7e8efa2b4feb8fe5fa8b..cd23f35f6e98b6fe63320cf3ef25bb84ece0c1e7 100644 (file)
@@ -59,8 +59,7 @@ struct childinfo {
 };
 struct syscallhandler {
     int num;
-    void (*handler)
-       __P((int, struct str_msg_ask *, struct systrace_answer *));
+    void (*handler) __P((int, struct str_msg_ask *, struct systrace_answer *));
     struct syscallhandler *next;
 };
 
@@ -253,8 +252,7 @@ systrace_attach(pid)
                memset(&ans, 0, sizeof(ans));
                ans.stra_pid = msg.msg_pid;
                ans.stra_seqnr = msg.msg_seqnr;
-               check_syscall(fd, &msg.msg_data.msg_ask,
-                   &ans, &handlers);
+               check_syscall(fd, &msg.msg_data.msg_ask, &ans, &handlers);
                if ((ioctl(fd, STRIOCANSWER, &ans)) == -1)
                    goto fail;
                break;
@@ -266,7 +264,6 @@ systrace_attach(pid)
                 *       the various emulations are.
                 */
                warnx("change in emul");
-               update_child(&children, msg.msg_pid, msg.msg_data.msg_ugid.uid);
                memset(&ans, 0, sizeof(ans));
                ans.stra_pid = msg.msg_pid;
                ans.stra_seqnr = msg.msg_seqnr;