summaryrefslogtreecommitdiff
path: root/sys/kern/kern_sysctl.c
diff options
context:
space:
mode:
authorTodd C. Miller <millert@cvs.openbsd.org>2004-01-07 03:37:58 +0000
committerTodd C. Miller <millert@cvs.openbsd.org>2004-01-07 03:37:58 +0000
commit9c81f1ddd54f7a1301d238d25c6600201e7e730f (patch)
tree68abd45267a82281dec23aede216c0febd6d5488 /sys/kern/kern_sysctl.c
parentc64dec7a8832e8b4e79b37dff85466cdeebea71e (diff)
Add p_emul to kinfo_proc2 for ps
Diffstat (limited to 'sys/kern/kern_sysctl.c')
-rw-r--r--sys/kern/kern_sysctl.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/kern/kern_sysctl.c b/sys/kern/kern_sysctl.c
index fc6f1cb487b..3c3781366ad 100644
--- a/sys/kern/kern_sysctl.c
+++ b/sys/kern/kern_sysctl.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: kern_sysctl.c,v 1.94 2004/01/07 02:13:51 millert Exp $ */
+/* $OpenBSD: kern_sysctl.c,v 1.95 2004/01/07 03:37:57 millert Exp $ */
/* $NetBSD: kern_sysctl.c,v 1.17 1996/05/20 17:49:05 mrg Exp $ */
/*-
@@ -1190,6 +1190,7 @@ fill_kproc2(struct proc *p, struct kinfo_proc2 *ki)
ki->p_xstat = p->p_xstat;
ki->p_acflag = p->p_acflag;
+ strlcpy(ki->p_emul, p->p_emul->e_name, sizeof(ki->p_emul));
strlcpy(ki->p_comm, p->p_comm, sizeof(ki->p_comm));
strncpy(ki->p_login, p->p_session->s_login,
min(sizeof(ki->p_login) - 1, sizeof(p->p_session->s_login)));