summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorChristian Weisgerber <naddy@cvs.openbsd.org>2019-12-01 18:17:32 +0000
committerChristian Weisgerber <naddy@cvs.openbsd.org>2019-12-01 18:17:32 +0000
commit3c0b50c4c7e0031d3c0c9b2ba7698b5661745799 (patch)
tree562bdd4165470a47964185f2958d97fc14697a9d /lib
parentec88c9bfd60fe26dce57eb81d2a126c1c90918ec (diff)
comply with POSIX and make execve() return EACCES for directories
ok millert@ deraadt@
Diffstat (limited to 'lib')
-rw-r--r--lib/libc/sys/execve.26
1 files changed, 2 insertions, 4 deletions
diff --git a/lib/libc/sys/execve.2 b/lib/libc/sys/execve.2
index 05d0530ff66..998958d1162 100644
--- a/lib/libc/sys/execve.2
+++ b/lib/libc/sys/execve.2
@@ -1,4 +1,4 @@
-.\" $OpenBSD: execve.2,v 1.52 2019/07/29 23:14:06 deraadt Exp $
+.\" $OpenBSD: execve.2,v 1.53 2019/12/01 18:17:31 naddy Exp $
.\" $NetBSD: execve.2,v 1.9 1995/02/27 12:32:25 cgd Exp $
.\"
.\" Copyright (c) 1980, 1991, 1993
@@ -30,7 +30,7 @@
.\"
.\" @(#)execve.2 8.3 (Berkeley) 1/24/94
.\"
-.Dd $Mdocdate: July 29 2019 $
+.Dd $Mdocdate: December 1 2019 $
.Dt EXECVE 2
.Os
.Sh NAME
@@ -250,8 +250,6 @@ bytes.
The new process file does not exist.
.It Bq Er ELOOP
Too many symbolic links were encountered in translating the pathname.
-.It Bq Er EISDIR
-The new process file is a directory.
.It Bq Er EACCES
Search permission is denied for a component of the path prefix.
.It Bq Er EACCES