From nobody Thu May 8 17:38:06 2025 X-Original-To: dev-commits-src-branches@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 4ZtfVQ3XZYz5vNFs; Thu, 08 May 2025 17:38:06 +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 4ZtfVQ1VfKz3HwS; Thu, 08 May 2025 17:38:06 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1746725886; 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=sAyxAGJGpdFwaesXgaiV6BVqvEr1B6SLe14SrqHkrOI=; b=Xpb+4msKfrLwj/vJY6K8wSMfQuaE6GTiXxQ8fOljFD6mKhMRdfAvYJTZhJ+MAeGIIAzv38 LvhUOZRA/0EGg282ysxq97og4RArt8hDaUdCCyEBjCw4/3Ff9p6lb4xJQ/UU5t/AluAjfy VvLOFB/QgVeUPk+jtcs+T2SYy/sYUcoPUKv4VSga2CekCa7t5ayBfslDyxH7Y0ZXH4PlKW /kYW7ASGFaw45M7ebo8j5xdn88dhK8ZHlzBZqGtT5hzwtlYnteOC/aYpHF2sZoWgykFMCL Hevirjmt6Ow5ZL/g508mHUVRtDrgghv2HpgfNpGtbMs2U8bdDNBF3VVVJzrjUA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1746725886; 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=sAyxAGJGpdFwaesXgaiV6BVqvEr1B6SLe14SrqHkrOI=; b=rrMfuxxZyJBZBWxhP3c8ZMoiSfIlk0Ic92Nez1amdezCRgHZi+4ElKZRPTVjeNnOpRllH3 /sl8NRvBv666PHcFIhYfmfh+maOhlmv8XS1ImtxwZU4CsXcSEKQZnFBqr1Hpf1JnUT1EVx R9nIwKSunEASbO6bw7LUMfyQRKlxUmAQD1pLbPZ/lJGHbbliLneI9gJiUeCprLeiA1dgsx B2xKxPYPvBbyE6VANThK5esOQTzJ1ELX9BXAA7zBq9EwczfvAaZRyuEnsUmOBz+c+qa//k CRVuLuTWOpDcHB5BqrmVNpxSmg82F5R2YXYnr2whCWZv8/wdXGQ5yl8dQ5QNUw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1746725886; a=rsa-sha256; cv=none; b=jY0flgAlesSrWbgfuBwyZGcqiZ61hU88xCJb6iUanbnWuTzEh+TcZegJMREyEPuaoHnCYu ChR1HJwO+XCk1DkV23RHAs+JK8vCmuH2kDzWWsSuEcFbKY3mrM5nFFobSTfJBQSGjzXQpu d1prOX9h5+iZn6weth683bBi33Yd4NyV1JwQjyugKlIBcLBXz9kTslnRuGIngJN3NkcSl/ PMXXD9QJRlf16vozEoPY0B71BZoQ7jdrVJ9qCZ/mIKgYREcZlteDvq9ODOkST5Ort4clkH esqYyNmAddnotMDn+1v8jdYXz6A6bo1Cv/Sj/brw9bep/vRS5g4jG50hu2H6XA== 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 4ZtfVQ0xtgz8lt; Thu, 08 May 2025 17:38:06 +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 548Hc6Gl042828; Thu, 8 May 2025 17:38:06 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 548Hc6bc042825; Thu, 8 May 2025 17:38:06 GMT (envelope-from git) Date: Thu, 8 May 2025 17:38:06 GMT Message-Id: <202505081738.548Hc6bc042825@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: f18a49a747f7 - stable/14 - RELNOTES: ps(1): Document change in behavior for '-a'/'-A' List-Id: Commits to the stable branches of the FreeBSD src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-branches List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-branches@freebsd.org Sender: owner-dev-commits-src-branches@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/stable/14 X-Git-Reftype: branch X-Git-Commit: f18a49a747f7641e93c24d50207d54e7e612f97d Auto-Submitted: auto-generated The branch stable/14 has been updated by olce: URL: https://cgit.FreeBSD.org/src/commit/?id=f18a49a747f7641e93c24d50207d54e7e612f97d commit f18a49a747f7641e93c24d50207d54e7e612f97d Author: Olivier Certner AuthorDate: 2025-05-06 13:42:33 +0000 Commit: Olivier Certner CommitDate: 2025-05-08 17:34:44 +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. --- 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