From: deraadt Date: Wed, 26 Mar 1997 17:23:50 +0000 (+0000) Subject: loginname copying in fill_eproc; gwing@primenet.com.au X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=79b9e326060e2b4de73d261c0af9642e6d5e1e9d;p=openbsd loginname copying in fill_eproc; gwing@primenet.com.au --- 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'; } -