summaryrefslogtreecommitdiff
path: root/sys/kern/kern_exec.c
diff options
context:
space:
mode:
authorMichael Shalayeff <mickey@cvs.openbsd.org>2002-03-14 17:17:24 +0000
committerMichael Shalayeff <mickey@cvs.openbsd.org>2002-03-14 17:17:24 +0000
commit85db1234fa27d08b86bfdf99d85b565aa5503a77 (patch)
tree1dc2f20960719b3a408bf282965a38991bf10224 /sys/kern/kern_exec.c
parentaf0d1efdc66b72bed53cde1ab7f6dd552d039a57 (diff)
invalid argv causes efault, not einval; form daniel@lucq.org
Diffstat (limited to 'sys/kern/kern_exec.c')
-rw-r--r--sys/kern/kern_exec.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/kern/kern_exec.c b/sys/kern/kern_exec.c
index d861374dd13..558a408ca74 100644
--- a/sys/kern/kern_exec.c
+++ b/sys/kern/kern_exec.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: kern_exec.c,v 1.65 2002/02/17 04:31:26 art Exp $ */
+/* $OpenBSD: kern_exec.c,v 1.66 2002/03/14 17:17:23 mickey Exp $ */
/* $NetBSD: kern_exec.c,v 1.75 1996/02/09 18:59:28 christos Exp $ */
/*-
@@ -320,7 +320,7 @@ sys_execve(p, v, retval)
/* Now get argv & environment */
if (!(cpp = SCARG(uap, argp))) {
- error = EINVAL;
+ error = EFAULT;
goto bad;
}