summaryrefslogtreecommitdiff
path: root/sys/kern/kern_exec.c
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2008-10-31 17:17:08 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2008-10-31 17:17:08 +0000
commit6b0aff59a090f1b84a4aaf57c95321b38e8696cb (patch)
treeb0913a453517f6569b6d0cb5ca7a239161ab3341 /sys/kern/kern_exec.c
parent289c591b1a40ed8e16871eb456fa694d11163462 (diff)
accidental commit ... backout
Diffstat (limited to 'sys/kern/kern_exec.c')
-rw-r--r--sys/kern/kern_exec.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/sys/kern/kern_exec.c b/sys/kern/kern_exec.c
index aa15c0c7997..50b19421943 100644
--- a/sys/kern/kern_exec.c
+++ b/sys/kern/kern_exec.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: kern_exec.c,v 1.107 2008/10/31 17:15:29 deraadt Exp $ */
+/* $OpenBSD: kern_exec.c,v 1.108 2008/10/31 17:17:00 deraadt Exp $ */
/* $NetBSD: kern_exec.c,v 1.75 1996/02/09 18:59:28 christos Exp $ */
/*-
@@ -500,11 +500,8 @@ sys_execve(struct proc *p, void *v, register_t *retval)
* root set it.
*/
if (p->p_tracep && !(p->p_traceflag & KTRFAC_ROOT)) {
- struct vnode *vp = p->p_tracep;
-
p->p_traceflag = 0;
- if (ktrsettracevnode(p, NULL) == 1)
- vrele(vp);
+ ktrsettracevnode(p, NULL);
}
#endif
p->p_ucred = crcopy(cred);