summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorKlemens Nanni <kn@cvs.openbsd.org>2023-05-13 16:36:41 +0000
committerKlemens Nanni <kn@cvs.openbsd.org>2023-05-13 16:36:41 +0000
commitca88671d354393bfccf2b205d421b1b8b8a4a300 (patch)
tree63971b0927ecacdccde07f4effb646e89cc8da09 /lib
parente3d1e22080d8a43f289fbf412e09c035d13cf8bd (diff)
default path includes /usr/local/sbin
Improve markup while here. Feedback tb jmc OK millert
Diffstat (limited to 'lib')
-rw-r--r--lib/libc/gen/execv.318
1 files changed, 13 insertions, 5 deletions
diff --git a/lib/libc/gen/execv.3 b/lib/libc/gen/execv.3
index efff84e6149..6e4f1485bb4 100644
--- a/lib/libc/gen/execv.3
+++ b/lib/libc/gen/execv.3
@@ -1,4 +1,4 @@
-.\" $OpenBSD: execv.3,v 1.1 2019/08/11 15:48:08 deraadt Exp $
+.\" $OpenBSD: execv.3,v 1.2 2023/05/13 16:36:40 kn Exp $
.\"
.\" Copyright (c) 1991, 1993
.\" The Regents of the University of California. All rights reserved.
@@ -27,7 +27,7 @@
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
.\" SUCH DAMAGE.
.\"
-.Dd $Mdocdate: August 11 2019 $
+.Dd $Mdocdate: May 13 2023 $
.Dt EXECV 3
.Os
.Sh NAME
@@ -136,8 +136,14 @@ If this variable isn't specified,
.Dv _PATH_DEFPATH
from
.In paths.h
-is used instead, its value being:
-.Pa /usr/bin:/bin:/usr/sbin:/sbin:/usr/X11R6/bin:/usr/local/bin
+is used instead, consisting of
+.Pa /usr/bin ,
+.Pa /bin ,
+.Pa /usr/sbin ,
+.Pa /sbin ,
+.Pa /usr/X11R6/bin ,
+.Pa /usr/local/bin ,
+.Pa /usr/local/sbin .
.Pp
In addition, certain errors are treated specially.
.Pp
@@ -201,7 +207,9 @@ Historically, the default path for the
and
.Fn execvp
functions was
-.Pa \&.:/bin:/usr/bin .
+.Pa \&. ,
+.Pa /bin ,
+.Pa /usr/bin .
This was changed to improve security and behaviour.
.Pp
The behavior of