From nobody Tue Oct 10 23:18:37 2023 X-Original-To: dev-commits-src-all@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4S4sKB26gwz4wTtP; Tue, 10 Oct 2023 23:18:38 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4S4sKB1K3qz4PDn; Tue, 10 Oct 2023 23:18:38 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1696979918; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=zKuZpZ1s73sZr1lLcjZn5hMfxFVnduEl5ECddPdSzSo=; b=rOFHMIuLJf5kvRTT2+E8vJN+shfxfCxBazmAj9puO9kkGT+w3AbYV6Y3MxEL8bTSSxkm8i ZY3b/Pq3CPci5OR20H9CPgU8n1bazo2wrNTc4LZ7D6QHBjsbrJJKt+fYEC1xdDCulZPPWI xDgty/1a/MuBub5SyYGWxRzGsPs/I/6WASYIPw0sYFT2iv9bfeVy35BPjfV8NNPOrt0NNY 7BOTpoYp4HT0CJgdVyvaIw9xu/rOJKyKfHCVWWHAhDBty0arHwjDGizJaIlF1npIJCdfjb WD0pYEZONZb4pkv7sGJ/n3zRZ2LnWm6MSz/+D5g45cQaKknAJxkkbtbhDWbR3Q== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1696979918; a=rsa-sha256; cv=none; b=GzQW0beE2O5RLv8uc0BX/LwxcdYT7EvSRe8Br2Bo5C6CaVSv9u4er5sJphKSw3pG/p5dLE Qx8PSObjx6V1nU1mdUkfZLgas/pOjeqTrAiXVOwNyrb5ltGOBCUbHW76VvhjKnHozvRYWd 62arRh5aDhrW1+ZHiimpDWAo1JFZByx01sf+PQwtBC8g0IVyp+ImxTPo25OXQDRgDyydUK ziIRDPXJujGKtbVZeDZ1yW2Z6A28YKRSQplhQD1IDlhPE8DHIZSErEO8SprXrPe7Iftox2 IHFxs4NjE/nVTWT9GBLTDtfUl8yhpgm7pGLas7itNqAEyVbx9H/HLiuLmOg1kQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1696979918; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=zKuZpZ1s73sZr1lLcjZn5hMfxFVnduEl5ECddPdSzSo=; b=FhzHeKFm1E5MpdSf5fznvdPZ0q9/Zz+ttNVxTx2NIU1OcmOOEHxZ6AvKmSauaShdyuU8+d HmTS+mXe0lr8JuK7A+g+e8f0FlZIiYVQfOdYMNBwEcrI7VtjyYM2Pq++4Oo1uVnjxD1dE2 j/p85sfvwzUM+PE2AMd0K2ymoa75O5MT53OnUeU5p8W1C7/OLkmaViTvbqBNYDoSIeMhgi YklQZg7BrHn5Hm7PdhxkLb2OMuXvj2bVv69Ui9GkHBndWy79nlOxncc60da/nEo0EtluvC NHkhpI0fWsluHG7KoAR2RX1c6On3QQpey5Pqp8/3y6J1XiZMe2E/a3ku9H6ETA== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4S4sKB0FwFzy5m; Tue, 10 Oct 2023 23:18:38 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 39ANIbJ4069910; Tue, 10 Oct 2023 23:18:37 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 39ANIbbY069907; Tue, 10 Oct 2023 23:18:37 GMT (envelope-from git) Date: Tue, 10 Oct 2023 23:18:37 GMT Message-Id: <202310102318.39ANIbbY069907@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: "Danilo G. Baio" Subject: git: f069e9868d98 - stable/13 - jexec man: Explain how PATH is adjusted. List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: dev-commits-src-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: dbaio X-Git-Repository: src X-Git-Refname: refs/heads/stable/13 X-Git-Reftype: branch X-Git-Commit: f069e9868d984ce03f5be11217a6fabaf1a054df Auto-Submitted: auto-generated The branch stable/13 has been updated by dbaio: URL: https://cgit.FreeBSD.org/src/commit/?id=f069e9868d984ce03f5be11217a6fabaf1a054df commit f069e9868d984ce03f5be11217a6fabaf1a054df Author: Gleb Popov AuthorDate: 2022-05-19 05:59:41 +0000 Commit: Danilo G. Baio 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