From nobody Thu May 19 13:59:10 2022 X-Original-To: dev-commits-src-main@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 9D2FA1AE4D94; Thu, 19 May 2022 13:59:10 +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 4L3s0Z3ll9z4S8F; Thu, 19 May 2022 13:59:10 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1652968750; 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=RsGkotvLvE9XxupBOg89Pqy/rsvs5xTBva8yBl33RKs=; b=OzHJg7B8ljHvgRQvKp+/qJoivmNV3HGPDju9DEa2K2qBWkZQk1XIXwuOZUkeOgx6YZLmXL 1Q7X0HqMgP8wBDRALSBYQiq6B2rV9EgrBFUSIDstK53JSiuV2QXG+btGTEVrXuNFdIp14L W7d797Jil1ywej4iMLF6hJwhAF0Vt5GpI50DRQIu3ReVf3ZEZ8xgxH1F7frxg/KEFnnQ0L XhZXph81agq1BHxkD9lDQx36PoifeY4EkIstpIah/VgIrEEWdApGYNgtCOEi0fhs0Tem2y uHt//Q0YqPQo4rx19bvKjZ3SpoFa0YVpDOTGLM181Zc+Uuq9IDSIa2EguCvSXA== 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 623C01F0A5; Thu, 19 May 2022 13:59:10 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 24JDxADC014997; Thu, 19 May 2022 13:59:10 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 24JDxAWt014996; Thu, 19 May 2022 13:59:10 GMT (envelope-from git) Date: Thu, 19 May 2022 13:59:10 GMT Message-Id: <202205191359.24JDxAWt014996@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Gleb Popov Subject: git: 7eb6a92e3f93 - main - jexec man: Explain how PATH is adjusted. List-Id: Commit messages for the main branch of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-main@freebsd.org X-BeenThere: dev-commits-src-main@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: arrowd X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 7eb6a92e3f938d419d3edc0399fc4c1d1018da15 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1652968750; 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=RsGkotvLvE9XxupBOg89Pqy/rsvs5xTBva8yBl33RKs=; b=enYj0lKucsk5K3xQtQOVlDAhiK4SuoJ8zqUCNCi2emD/+ShVG+cJWoCI2ccngGFiW0DrCH ojzb0OT4FZNFlvatLBnsA4Hh6x4FOr6RS6Hh/XJ5VN4CMWI9orDiy6E/xjc3bQkWpQXMTB Nd/DuY7F/zwub1GaF1K0VYGSRWwHDPm5Lic+iayJPvU9oAA23HSwlqaJ+/cTlO92bwZQ2f SjQWcbUChe76zkYRWfUPT9o+d4spNNQnTVUTiBk1f6J4/0Gi5Q4AZrTl08hu1JJlzGboho u2ilEMWAg1WBbrr/8KqnTaCiGCEB3qmNyX2vBDASN/fxBV1lcXY7QGbMcGLuDQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1652968750; a=rsa-sha256; cv=none; b=PUfRZzkeyNfvG5P80qn+c59/p8gsTE5VPi3F4P+NZ25L4C8KzGYL6xFY+BQGhcUDYdi6P5 OCVY5Y5nBaqaakiFFQ4bco1FcMHa7U5VUrNAYV2EDBOn0z6s8HlqiJVG8iMstSOjS2Ow+5 dTAjDjx0/A2nZ5rhNAoRYVZqX3cCyFJ4fNP/JpA4sUxospeRhal8XKjGwO/d7ANnUWlqKP 5O9/uqOTbccMSpVPMt0Mqv/zDW5iZYqfdW2EUhYx8JBZHsXRoinzx6uksYc7hWOmqzMEWI NOuJjl959zPSJSV+WD+nBQdF/tOA0+89yDwInM9cLKXHcwLebM1v9vBCJLKUEA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by arrowd (ports committer): URL: https://cgit.FreeBSD.org/src/commit/?id=7eb6a92e3f938d419d3edc0399fc4c1d1018da15 commit 7eb6a92e3f938d419d3edc0399fc4c1d1018da15 Author: Gleb Popov AuthorDate: 2022-05-19 05:59:41 +0000 Commit: Gleb Popov 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