summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>1997-08-01 21:59:14 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>1997-08-01 21:59:14 +0000
commit80b94d3721d130e60304019cc5c83ede42cd48a1 (patch)
treeb02465575a903d2bce22cf5e0eb79fe12adc46c0
parent698262abbdd78817ace4a6b9b65aa59646e0bb36 (diff)
disable RFFDG; long explanation...
-rw-r--r--sys/kern/kern_fork.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/kern/kern_fork.c b/sys/kern/kern_fork.c
index 9c4cd342abf..f87e27995c7 100644
--- a/sys/kern/kern_fork.c
+++ b/sys/kern/kern_fork.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: kern_fork.c,v 1.9 1997/07/07 17:52:10 kstailey Exp $ */
+/* $OpenBSD: kern_fork.c,v 1.10 1997/08/01 21:59:13 deraadt Exp $ */
/* $NetBSD: kern_fork.c,v 1.29 1996/02/09 18:59:34 christos Exp $ */
/*
@@ -130,6 +130,8 @@ fork1(p1, forktype, rforkflags, retval)
return (EINVAL); /* XXX unimplimented */
if (rforkflags & RFCFDG)
cleanfd = 1;
+ if (dupfd == 0)
+ return (EPERM);
}
/*