From nobody Tue May 13 12:42:39 2025 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 4ZxbjD1J93z5wnQN; Tue, 13 May 2025 12:42:40 +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 "R11" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4ZxbjC6Wysz3sxL; Tue, 13 May 2025 12:42:39 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1747140159; 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=7gp9p9VY/3FSCeRpVxk70/ZsT7DOTFKkk+g5fPMLQ9E=; b=u5f25kFmWnNt9wbUQcFttfDIGMaH+lpR8CVfnZhTm5Sg/BtVSCQr4AiEwK+Xd6YUrNVz86 iWCZfF8UgBqFT4t5I+8o0JEY3afCxtqiiEOk13oGKc5X5PXJS6FirnCtNWmDwSHQx75U4r W7sZ3SHB4Wy7ul4q/m8X+jrO+qUGnsHMPzv9NZoI0vz7AHOREC7A9bomK5pg116dwEmoPE glcKPP8YnreleBfDiekyGqWVod1Hlu8REJ+KgSEpXrFVPGcH+a490f8uz8d/47ntE4YggZ 1CcYV1kFNyltLNpctmF3kNeT13VyC2tCpI0lSHqzzoIqXVtw58XR+mQc+vaL+w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1747140159; 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=7gp9p9VY/3FSCeRpVxk70/ZsT7DOTFKkk+g5fPMLQ9E=; b=IX/JftyUFx6gSmVr0N1wzCEuigFya2b4/fAYj4Kxvazd4/12IQfOVx47QCJC29Zteg2HyE iuAuouFytGYqFXdMkphFgsqQoleu87M7gyhar6IrnkcpdioWwdDiRlkDYiPooyBRQSZado RvByRNrET3UkvlP6baDSgkXSl8aZt19qmuDJnVba6CCPI0rIX4wnfdo1HKVC1QQq5pjQAe gNdLUBlVSTxjg03C5DxPjpgRoh8tNbFn8bYyXHAJK8MU/9JohyyuikYGEfD2MFr/MdexLy JOvCbG1UxSK22SW0rE7pn9UFGL12sBUMloz7WiV4ou3k3k59Ojg+Wod/I/IHxQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1747140159; a=rsa-sha256; cv=none; b=R6g37eWj0vwBXClU1LIW5xAlvHuFPxihmzuka+0W3aYE2CoaAoIDZaPpgwP0cFYCSor313 YZZmdhHUsTq51KhHMaGqeFvE9pmqF53Cc7Xc0T7I4YexIboKo0XBPHphIjj0U9eUmktqfk Ifm47Ld+HrBe7aZyC2ByJp2VveDmbAqx+PuetUQ0f4dhJcx6Rh3gcckN5O9MJff/4cWvJT ++YZ9eRZeq2WzMkWMrsoHC9U+o1CxCmkyCsTLnj9F9lGX+csp5ijD+uUQQJx5OKjwg6A1u bvTYmRM58+tEtgk/YhAC4cJndOL9cSAYTegYFOvIYAAq/yjtlwmZBgCNoba79w== ARC-Authentication-Results: i=1; mx1.freebsd.org; none 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 4ZxbjC63v1zn6c; Tue, 13 May 2025 12:42:39 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.18.1/8.18.1) with ESMTP id 54DCgdhK072594; Tue, 13 May 2025 12:42:39 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 54DCgdYR072591; Tue, 13 May 2025 12:42:39 GMT (envelope-from git) Date: Tue, 13 May 2025 12:42:39 GMT Message-Id: <202505131242.54DCgdYR072591@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Olivier Certner Subject: git: eed005b57895 - releng/14.3 - RELNOTES: ps(1): Document change in behavior for '-a'/'-A' 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: X-BeenThere: dev-commits-src-all@freebsd.org Sender: owner-dev-commits-src-all@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: olce X-Git-Repository: src X-Git-Refname: refs/heads/releng/14.3 X-Git-Reftype: branch X-Git-Commit: eed005b578954025bd2e4bab47d3c37f8d6c1e9c Auto-Submitted: auto-generated The branch releng/14.3 has been updated by olce: URL: https://cgit.FreeBSD.org/src/commit/?id=eed005b578954025bd2e4bab47d3c37f8d6c1e9c commit eed005b578954025bd2e4bab47d3c37f8d6c1e9c Author: Olivier Certner AuthorDate: 2025-05-06 13:42:33 +0000 Commit: Olivier Certner CommitDate: 2025-05-13 12:41:26 +0000 RELNOTES: ps(1): Document change in behavior for '-a'/'-A' Document the practical consequence of change "ps(1): Make '-a' and '-A' always show all processes" (93a94ce731a8) that specifying '-a'/'-A' leads to printing all processes regardless of the presence of other process selection options (except for '-x'/'-X', which command a filter). While here, mention a possible practical issue with '-J', as reported by dch@. This option was introduced by commit "Add -J to filter by matching jail IDs and names." (13767130c7147ae7182a, r265229), which unfortunately talked about '-J' being a filter while actually implementing it as a regular selection option which adds to the processes to display. Reviewed by: dch MFC after: 1 day Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D50193 (cherry picked from commit 428200d2f0689aa801f5cab15d3066e2c77825f5) Commit hash edited on MFC. (cherry picked from commit f18a49a747f7641e93c24d50207d54e7e612f97d) Approved by: re (cperciva) --- RELNOTES | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/RELNOTES b/RELNOTES index 82c0aacd97ee..838833f8db89 100644 --- a/RELNOTES +++ b/RELNOTES @@ -10,6 +10,23 @@ newline. Entries should be separated by a newline. Changes to this file should not be MFCed. +1ee62f354ab0: + ps(1)'s options '-a' and '-A', when combined with any other one + affecting the selection of processes except for '-X' and '-x', would + have no effect, in contradiction with the rule that one process is + listed as soon as any of the specified options selects it (inclusive + OR), which is both mandated by POSIX and arguably a natural expectation. + This bug has been fixed. + + As a practical consequence, specifying '-a'/'-A' now causes all + processes to be listed regardless of other selection options (except for + '-X' and '-x', which still apply). In particular, to list only + processes from specific jails, one must not use '-a' with '-J'. Option + '-J', contrary to its apparent initial intent, never worked as a filter + in practice (except by accident with '-a' due to the bug), but instead + as any other selection options (e.g., '-U', '-p', '-G', etc.) subject to + the "inclusive OR" rule. + a2132d91739d: ps(1)'s '-U' option has been changed to select processes by their real user IDs instead of their effective one, in accordance with POSIX and