From 7b3547a305693aa91f8b738e1949b07d7b55668a Mon Sep 17 00:00:00 2001 From: kn Date: Sat, 13 May 2023 16:36:40 +0000 Subject: [PATCH] default path includes /usr/local/sbin Improve markup while here. Feedback tb jmc OK millert --- lib/libc/gen/execv.3 | 18 +++++++++++++----- 1 file 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 -- 2.20.1