summaryrefslogtreecommitdiffstats
path: root/sys/kern/kern_exec.c
diff options
context:
space:
mode:
authorderaadt <deraadt@openbsd.org>1998-07-02 09:03:42 +0000
committerderaadt <deraadt@openbsd.org>1998-07-02 09:03:42 +0000
commit6125bce160538be750bd81310a879dc22ef38e99 (patch)
tree100ea8de5f489c26fd245e54aec44c354ded52f5 /sys/kern/kern_exec.c
parentfor sugid procs ensure that fd 0-2 are allocated slots (by pointing at (diff)
downloadwireguard-openbsd-6125bce160538be750bd81310a879dc22ef38e99.tar.xz
wireguard-openbsd-6125bce160538be750bd81310a879dc22ef38e99.zip
I suppose debugging code can be removed
Diffstat (limited to 'sys/kern/kern_exec.c')
-rw-r--r--sys/kern/kern_exec.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/sys/kern/kern_exec.c b/sys/kern/kern_exec.c
index f4d2dca6669..559d8b43caf 100644
--- a/sys/kern/kern_exec.c
+++ b/sys/kern/kern_exec.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: kern_exec.c,v 1.20 1998/07/02 08:53:04 deraadt Exp $ */
+/* $OpenBSD: kern_exec.c,v 1.21 1998/07/02 09:03:42 deraadt Exp $ */
/* $NetBSD: kern_exec.c,v 1.75 1996/02/09 18:59:28 christos Exp $ */
/*-
@@ -491,18 +491,15 @@ sys_execve(p, v, retval)
int indx;
if (p->p_fd->fd_ofiles[i] == NULL) {
- printf("need %d\n", i);
if ((error = falloc(p, &fp, &indx)) != 0)
continue;
NDINIT(&nd, LOOKUP, FOLLOW, UIO_SYSSPACE,
"/dev/null", p);
if ((error = vn_open(&nd, FREAD, 0)) != 0) {
- printf("failed %d\n", i);
ffree(fp);
p->p_fd->fd_ofiles[indx] = NULL;
break;
}
- printf("got %d\n", i);
fp->f_flag = FREAD;
fp->f_type = DTYPE_VNODE;
fp->f_ops = &vnops;