diff options
Diffstat (limited to 'sys/kern/kern_sysctl.c')
-rw-r--r-- | sys/kern/kern_sysctl.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/kern/kern_sysctl.c b/sys/kern/kern_sysctl.c index ae39c479078..67647f82c47 100644 --- a/sys/kern/kern_sysctl.c +++ b/sys/kern/kern_sysctl.c @@ -1,4 +1,4 @@ -/* $OpenBSD: kern_sysctl.c,v 1.245 2014/03/22 06:05:45 guenther Exp $ */ +/* $OpenBSD: kern_sysctl.c,v 1.246 2014/03/30 21:54:48 guenther Exp $ */ /* $NetBSD: kern_sysctl.c,v 1.17 1996/05/20 17:49:05 mrg Exp $ */ /*- @@ -1408,12 +1408,12 @@ again: break; case KERN_PROC_UID: - if (p->p_ucred->cr_uid != (uid_t)arg) + if (pr->ps_ucred->cr_uid != (uid_t)arg) continue; break; case KERN_PROC_RUID: - if (p->p_cred->p_ruid != (uid_t)arg) + if (pr->ps_ucred->cr_ruid != (uid_t)arg) continue; break; @@ -1501,7 +1501,7 @@ fill_kproc(struct proc *p, struct kinfo_proc *ki, int isthread, struct tty *tp; struct timespec ut, st; - FILL_KPROC(ki, strlcpy, p, pr, p->p_cred, p->p_ucred, pr->ps_pgrp, + FILL_KPROC(ki, strlcpy, p, pr, pr->ps_ucred, pr->ps_pgrp, p, pr, s, p->p_vmspace, pr->ps_limit, pr->ps_sigacts, isthread, show_pointers); |