From nobody Wed Jul 19 07:27:42 2023 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 4R5S8H2RTVz4dPq8; Wed, 19 Jul 2023 07:27:43 +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 4R5S8H1DVkz3JTT; Wed, 19 Jul 2023 07:27:43 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1689751663; 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=4jcOCmWDhNMuXEzhWh/UjbGyqBTpM5GmVdbRBVSFr04=; b=gJSRLW6CP5fYY59Jg1l4bdCgET58PHxLaQOyItFwbBTOKmTvq89YEKNrQgDugSSf69wJWe WZcPcjBJHwcju2Fg7ovHYBF8dgo1+rR8FERaUxhAvzUPiOot9yb00plof1Rz4FIpwVx9/d vPrV8hmnm5o7PcZbqzLizkFRJrw9NTKnTqZ4heFB9JtHMnYX7jV3eY1hhMnPgGntHxZDq/ mxSWW0iBq+OPJaVza81rqhO917N8UMAxMmNm7rk/h6B4tNrAZOYYUmgDyMtrDb6iuOrxYk WHaCldF98hbyN1sb5RT21xnkMGF5tf7zavBaVXxrO25kQdFKPIKEbPGbf3isBw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1689751663; 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=4jcOCmWDhNMuXEzhWh/UjbGyqBTpM5GmVdbRBVSFr04=; b=ap1Fe8Om7pgKSzWW83TNf5YKUBYhbDqBZioeJKC3EweQoSNfSjZ+w0NmhXjj9gu6wOQyz7 V5ysTkuudT3dnvTzNgxwDVDshkL8NPUNG0tSh8+oT1e/C+yFSvY8CrD+AIDO3NTI9cYY8p +GTBDfaD/vRqDXD0UtdCJkuxrdvtG1eGCrmwquwhkGuwPo5JH9VgE7Fonh2ccrvYw6LU0B nFM9sPZcTqzZwe39oyxpBEtpYwYj0VyQ+NxCUEXQmTdtBCdsy2adCs8cECS3m+m8UjJmWz +xGpc96oq/TW+/bQsWqflH/9sM6CLATSxzT7wqz5DRbr95sXUsuwHGPPbGY53Q== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1689751663; a=rsa-sha256; cv=none; b=Xmc2wR3SCGrSF5k2IwTJ8xuKi8EIiweX5CGTnMbb28FDo4cAEBHyKJfl6WWX+L/lzqcZ0j E96uH3ftMqJrhPM5Ddm68jwWGnrx/rjtnBNDsu7cljU0wiCM0eK0nFfEFnR2Rz6mdXLKWf 0ry2okvxkMqlYc+r+AcT89OJuMTgR36ZGuE1d9CWUqqZnq3KPHRI08/1Cflwi9+d4vLfxu ywAQ2GXMt5hQPeJ4+EEo/PLhneJ2SscRl6xbz+fFqf7dnRIHuFx+1k5N4r2LttkN4BRyd5 xqfziSFm0iz5+JJXjZzBDedHToyyd8jfzHsNhsG7b7aYh/pfsypZ3/CTpm8WWw== 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 4R5S8H06lHzdcR; Wed, 19 Jul 2023 07:27:43 +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 36J7RgE5020872; Wed, 19 Jul 2023 07:27:42 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 36J7RgqI020871; Wed, 19 Jul 2023 07:27:42 GMT (envelope-from git) Date: Wed, 19 Jul 2023 07:27:42 GMT Message-Id: <202307190727.36J7RgqI020871@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Kristof Provost Subject: git: d84a5e90185c - stable/12 - pf: fix error descriptions in the man page 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: Sender: owner-dev-commits-src-branches@freebsd.org X-BeenThere: dev-commits-src-branches@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: kp X-Git-Repository: src X-Git-Refname: refs/heads/stable/12 X-Git-Reftype: branch X-Git-Commit: d84a5e90185ccb06c7230381bb425a0fa8170672 Auto-Submitted: auto-generated The branch stable/12 has been updated by kp: URL: https://cgit.FreeBSD.org/src/commit/?id=d84a5e90185ccb06c7230381bb425a0fa8170672 commit d84a5e90185ccb06c7230381bb425a0fa8170672 Author: Kristof Provost AuthorDate: 2023-07-12 11:17:14 +0000 Commit: Kristof Provost CommitDate: 2023-07-19 07:27:08 +0000 pf: fix error descriptions in the man page PR: 272459 Submitted by: alex@inferiorhumanorgans.com MFC after: 1 week (cherry picked from commit df56c8069a4c920392ac9fec0adfcc03d9607abc) --- share/man/man4/pf.4 | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) diff --git a/share/man/man4/pf.4 b/share/man/man4/pf.4 index 8f25b7c7aebd..3b3237cb9295 100644 --- a/share/man/man4/pf.4 +++ b/share/man/man4/pf.4 @@ -302,8 +302,10 @@ calls. Nested anchors, since they are not directly attached to the given anchor, will not be included. This ioctl returns -.Er EINVAL -if the given anchor does not exist. +.Er ENOENT +if the parent anchor given at +.Va path +does not exist. .It Dv DIOCGETRULESET Fa "struct pfioc_ruleset *pr" Get a ruleset (i.e., an anchor) .Va name @@ -315,10 +317,14 @@ the maximum number of which can be obtained from a preceding .Dv DIOCGETRULESETS call. This ioctl returns -.Er EINVAL -if the given anchor does not exist or +.Er ENOENT +if the parent anchor given by +.Va path +does not exist or .Er EBUSY -if another process is concurrently updating a ruleset. +if the index passed in by +.Va nr +is greater than the number of anchors. .It Dv DIOCADDSTATE Fa "struct pfioc_state *ps" Add a state entry. .Bd -literal