artulab
projects
/
openbsd
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9791fe1
)
loginname copying in fill_eproc; gwing@primenet.com.au
author
deraadt
<deraadt@openbsd.org>
Wed, 26 Mar 1997 17:23:50 +0000
(17:23 +0000)
committer
deraadt
<deraadt@openbsd.org>
Wed, 26 Mar 1997 17:23:50 +0000
(17:23 +0000)
sys/kern/kern_sysctl.c
patch
|
blob
|
history
diff --git
a/sys/kern/kern_sysctl.c
b/sys/kern/kern_sysctl.c
index
33261ac
..
5403b77
100644
(file)
--- a/
sys/kern/kern_sysctl.c
+++ b/
sys/kern/kern_sysctl.c
@@
-1,4
+1,4
@@
-/* $OpenBSD: kern_sysctl.c,v 1.1
3 1996/10/04 01:26:47
deraadt Exp $ */
+/* $OpenBSD: kern_sysctl.c,v 1.1
4 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';
}
-