Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 19 May 2022 13:59:10 GMT
From:      Gleb Popov <arrowd@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org
Subject:   git: 7eb6a92e3f93 - main - jexec man: Explain how PATH is adjusted.
Message-ID:  <202205191359.24JDxAWt014996@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by arrowd (ports committer):

URL: https://cgit.FreeBSD.org/src/commit/?id=7eb6a92e3f938d419d3edc0399fc4c1d1018da15

commit 7eb6a92e3f938d419d3edc0399fc4c1d1018da15
Author:     Gleb Popov <arrowd@FreeBSD.org>
AuthorDate: 2022-05-19 05:59:41 +0000
Commit:     Gleb Popov <arrowd@FreeBSD.org>
CommitDate: 2022-05-19 13:58:32 +0000

    jexec man: Explain how PATH is adjusted.
    
    Add a sentence that explains that PATH is set to `/bin:/usr/bin`.
    I had to dive into `jexec.c` to find this out.
    
    Reviewed by:    markj
    Differential Revision: https://reviews.freebsd.org/D35251
---
 usr.sbin/jexec/jexec.8 | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/usr.sbin/jexec/jexec.8 b/usr.sbin/jexec/jexec.8
index f7ff3337ad46..8b28061c7037 100644
--- a/usr.sbin/jexec/jexec.8
+++ b/usr.sbin/jexec/jexec.8
@@ -55,6 +55,8 @@ Execute in a clean environment.
 The environment is discarded except for
 .Ev HOME , SHELL , TERM , USER ,
 and anything from the login class capability database for the user.
+.Ev PATH
+is set to "/bin:/usr/bin".
 .It Fl u Ar username
 The user name from host environment as whom the
 .Ar command



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202205191359.24JDxAWt014996>