From nobody Wed May 7 09:15:34 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 4ZsqP303Nqz5w2G9; Wed, 07 May 2025 09:15:35 +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 4ZsqP26F2Rz3Hpj; Wed, 07 May 2025 09:15:34 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1746609334; 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=buPylr39cY2+KYJ6gvrWxNSX7GO0ZZ6+t0dJsT+Le58=; b=g/xL8qEy/8a9iI6XWzmw7cXnkkXtkQ2hGwiOpCsuDip8+uGXeYAVC0gDeY64OQ0JZFRJZb 61yvFCcAX75qCKVuXaWEWm1Cj38indsI0DiNzFVS+1dappkFXSrGpoN9WIndjvSB/7TOjT hWB8+56dXiBC/v48/psm06bmpl9DnHV5YdR9y3ricBkxgywvkqeah4C74zATlXGv7BfdNV 25myLYO8LT2iRYFxeBaqlHCAlgYfptjYEb1mK3CblbRLtu2Otm6IlRccMXpkW+taSIhtRL wP7BiAP85Zl93fFRsJs2C/TiZkpbiPNQLWFO7Jm1OGgPR0hVzHkIRbfBahCw1w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1746609334; 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=buPylr39cY2+KYJ6gvrWxNSX7GO0ZZ6+t0dJsT+Le58=; b=mXv6n7DwiBPR2txQwJoJHLzJ89J5ZxDcDMf72QjWRMEYJdCUcIM65V7z4x9RWJ94ILPglK hRBEwlLIfruQnghulQLe8nG36GDM2Umrx14fw9uYWHBsyOXWm4S7KNqaZqHjllAmBpgfVe d4g9j9cSj0umKMJ2vR+DwSICztNVkfjLWfz4cXquoDx8/AxkbVHR6VnmaqRgWyCC2r+hDg LEawR4MT7GdcYgygfLuwRhyoqCxgBdl+iEOeQ1UdpVHV8GXhRlkRqza/THBwiHoF1vv0Y+ RR8NlJ0I0EqdR2tU0Z4lClVYcWSgtsA1P+pDIRge3WY6mnrq0NpJqbThKBM0zA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1746609334; a=rsa-sha256; cv=none; b=jCfOWIs7RMdHxMK7444YZnGykO6pU56bb2Sevqmx5qT5fA7hmZnbXa65dckFA2unE+to1P FRwDoJh+dWKQTrdp4O99cVwCUn6E6Ho26g7U0hsFuMn3bO0K0JCYnyRCKo2VDmu5/LnpTw hbpJvx68+GjpSLjcGXZ6wIHFIyi09Gsgt8qV/6n8FVdOuLS00t3egx/3fNBRnLxIpImGsD QKnjlNJWMUWB8yWBABmHy/SQtv4jiiiCBieSnsgi3RiOryrJ2pgJZrvi/nXW8xg4ZIWASG bzowRl7vX5O3bWH3YEfZF/Ou8XehAtQOAbGe9igibzM3sYKVCYb5Hit3a5iGEQ== 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 4ZsqP25X4Zz7Z8; Wed, 07 May 2025 09:15:34 +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 5479FY7r098622; Wed, 7 May 2025 09:15:34 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 5479FYUt098619; Wed, 7 May 2025 09:15:34 GMT (envelope-from git) Date: Wed, 7 May 2025 09:15:34 GMT Message-Id: <202505070915.5479FYUt098619@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Olivier Certner Subject: git: 428200d2f068 - main - 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/main X-Git-Reftype: branch X-Git-Commit: 428200d2f0689aa801f5cab15d3066e2c77825f5 Auto-Submitted: auto-generated The branch main has been updated by olce: URL: https://cgit.FreeBSD.org/src/commit/?id=428200d2f0689aa801f5cab15d3066e2c77825f5 commit 428200d2f0689aa801f5cab15d3066e2c77825f5 Author: Olivier Certner AuthorDate: 2025-05-06 13:42:33 +0000 Commit: Olivier Certner CommitDate: 2025-05-07 09:14:50 +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 --- RELNOTES | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/RELNOTES b/RELNOTES index 369ce0d9c504..49a4085214aa 100644 --- a/RELNOTES +++ b/RELNOTES @@ -15,6 +15,24 @@ Changes to this file should not be MFCed. interfaces for viewing and manipulating audio device settings (sysctls, /dev/sndstat), into a single utility with a similar control-driven interface to that of mixer(8). + +93a94ce731a8: + 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. + 995b690d1398: 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