From: Todd C. Miller Date: Sat, 25 Sep 2004 20:15:44 +0000 (+0000) Subject: Remove bogus call to update_child() and some cosmetic fixes X-Git-Tag: SUDO_1_7_0~948 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=649e2dac12b916b21d52cde3ef0643edc47aff83;p=sudo Remove bogus call to update_child() and some cosmetic fixes --- diff --git a/mon_systrace.c b/mon_systrace.c index 523774be6..cd23f35f6 100644 --- a/mon_systrace.c +++ b/mon_systrace.c @@ -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;