From 79b9e326060e2b4de73d261c0af9642e6d5e1e9d Mon Sep 17 00:00:00 2001 From: deraadt Date: Wed, 26 Mar 1997 17:23:50 +0000 Subject: [PATCH] loginname copying in fill_eproc; gwing@primenet.com.au --- sys/kern/kern_sysctl.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/sys/kern/kern_sysctl.c b/sys/kern/kern_sysctl.c index 33261ace9fc..5403b77c551 100644 --- a/sys/kern/kern_sysctl.c +++ b/sys/kern/kern_sysctl.c @@ -1,4 +1,4 @@ -/* $OpenBSD: kern_sysctl.c,v 1.13 1996/10/04 01:26:47 deraadt Exp $ */ +/* $OpenBSD: kern_sysctl.c,v 1.14 1997/03/26 17:23:50 deraadt Exp $ */ /* $NetBSD: kern_sysctl.c,v 1.17 1996/05/20 17:49:05 mrg Exp $ */ /*- @@ -743,5 +743,6 @@ fill_eproc(p, ep) strncpy(ep->e_wmesg, p->p_wmesg, WMESGLEN); ep->e_xsize = ep->e_xrssize = 0; ep->e_xccount = ep->e_xswrss = 0; + strncpy(ep->e_login, ep->e_sess->s_login, MAXLOGNAME-1); + ep->e_login[MAXLOGNAME-1] = '\0'; } - -- 2.20.1