2
0
mirror of https://github.com/sudo-project/sudo.git synced 2025-09-03 15:55:40 +00:00

Remove bogus call to update_child() and some cosmetic fixes

This commit is contained in:
Todd C. Miller
2004-09-25 20:15:44 +00:00
parent 4e5c53e139
commit 649e2dac12

View File

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