summaryrefslogtreecommitdiff
path: root/sys/kern/kern_sysctl.c
diff options
context:
space:
mode:
authorkstailey <kstailey@cvs.openbsd.org>1997-09-03 13:51:10 +0000
committerkstailey <kstailey@cvs.openbsd.org>1997-09-03 13:51:10 +0000
commitc8f99376942801efe48f4616d120f80357c1a6c4 (patch)
treeb53e05d1917e8a76ba2b4552f0ceaa18ae48099f /sys/kern/kern_sysctl.c
parent5f0c33b983ba3e26e3dd43241ee7a46e4f66a024 (diff)
changes for ps "emul" option
Diffstat (limited to 'sys/kern/kern_sysctl.c')
-rw-r--r--sys/kern/kern_sysctl.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/kern/kern_sysctl.c b/sys/kern/kern_sysctl.c
index ccbeeb7f360..2ab8e6d63c0 100644
--- a/sys/kern/kern_sysctl.c
+++ b/sys/kern/kern_sysctl.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: kern_sysctl.c,v 1.18 1997/06/22 04:58:03 flipk Exp $ */
+/* $OpenBSD: kern_sysctl.c,v 1.19 1997/09/03 13:51:08 kstailey Exp $ */
/* $NetBSD: kern_sysctl.c,v 1.17 1996/05/20 17:49:05 mrg Exp $ */
/*-
@@ -749,4 +749,6 @@ fill_eproc(p, ep)
ep->e_xccount = ep->e_xswrss = 0;
strncpy(ep->e_login, ep->e_sess->s_login, MAXLOGNAME-1);
ep->e_login[MAXLOGNAME-1] = '\0';
+ strncpy(ep->e_emul, p->p_emul->e_name, EMULNAMELEN);
+ ep->e_emul[EMULNAMELEN] = '\0';
}