Date: Tue, 10 Oct 2023 23:18:37 GMT From: "Danilo G. Baio" <dbaio@FreeBSD.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org Subject: git: f069e9868d98 - stable/13 - jexec man: Explain how PATH is adjusted. Message-ID: <202310102318.39ANIbbY069907@gitrepo.freebsd.org>
next in thread | raw e-mail | index | archive | help
The branch stable/13 has been updated by dbaio: URL: https://cgit.FreeBSD.org/src/commit/?id=f069e9868d984ce03f5be11217a6fabaf1a054df commit f069e9868d984ce03f5be11217a6fabaf1a054df Author: Gleb Popov <arrowd@FreeBSD.org> AuthorDate: 2022-05-19 05:59:41 +0000 Commit: Danilo G. Baio <dbaio@FreeBSD.org> CommitDate: 2023-10-10 23:16:24 +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 (cherry picked from commit 7eb6a92e3f938d419d3edc0399fc4c1d1018da15) --- 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 59c00750ee0b..69f380676c30 100644 --- a/usr.sbin/jexec/jexec.8 +++ b/usr.sbin/jexec/jexec.8 @@ -53,6 +53,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?202310102318.39ANIbbY069907>