From nobody Wed Jul 29 07:30:15 2026 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 4h93rm02w9z6mq3X for ; Wed, 29 Jul 2026 07:30:16 +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 "YR1" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 4h93rl3tjtz3L8H for ; Wed, 29 Jul 2026 07:30:15 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1785310215; 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=/0FrVVoyf9W1U+ViYyEGPlxrwqHbdbbq3JMOcNwkz5U=; b=IHDMeDQaAhApfgXVkkReV0HbQkdMxLL/IgUn7WPdcGpsQdl5y7NHnF7g5PtJ8PzQgEDp/e s/Ofe2vZtcizHT+4RfwhKi/gOkUK6h6Akm9isdhtt8NEyc08WDtOlZnM8Vnj3N+5rfzwf8 qv+qK0XwDWOKJoAs1xPxTHsyilA8ZLbNQrVWUQ0DPytRSL/o7zhJTvka4wX8ON8FP9x5iS OL9xcuY3QWEZHBUIa1ScenT9rx127R5gQZXems0N+fU4ngPXer/l2jouP4AlbwH4zZefGm BWogmkRFZblFnJ2r5QNREFTgRtdjxtda0fbgtougX+pH1A59oMM08Qil/uLX1Q== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1785310215; a=rsa-sha256; cv=none; b=ag9utY39sNHeXFIZUIsChrb0U1ogLxftOMswgiaZAMn3mAa2OBIQqsBSvSCc3wR6XGoJlg gR4q8VV9gRmsSEIuYZhrox7ZU+133xjg/65w0XQM+YzfjHG8bkrHwy4zAdauuz7yqdnB2l e9txBf/zE7yfeyGu3e42aqGvLi/8rgR3K4ph2on1w+uXLvG9D5lxilUWQvLMOf4HvaBdi+ MxU3RZaw3OwdS/60jY0ltNcsoA9e9ICn9jp9bbMp/pw7vX/Pfigz7ClfECkYj/lrL0Uj4k PldmEYVwslQ1RgC4mfJiaSLMECYxeDrcleSxYRHSqIaxR7n4OmGjEcpjPsHSwQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1785310215; 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=/0FrVVoyf9W1U+ViYyEGPlxrwqHbdbbq3JMOcNwkz5U=; b=uJchoZ92Bd/T4uSmxZN9+QNFevQUYlux7zrQFnZvdNI4YXyWXNVoGPrDmucWWQs5191S03 v0xTF7L6XnOsRr6nWzEaLnSGeYE/ncB1Nb/4VtJtuK7XgerEDewFXVhziFe6xYQPrE+E3n JH4dw+0FhJhugXvzFKCcvgFU4GS01JJE5e89quXBc5N0ElYzmnwzxyWmgW2Z4WBRJ+sYwp sdH9/vYSjYqlPedPVwsnFFlxbRgudH+JFqLEV0E524GE/002v9JUS1+FHJO6OJzD/v6VR0 dKjeDNk+EzvqSN9C1Cl1tfnp/t3d7LpMoJ/vCuP2h8jX4HIgRdS2nCctrA3vJw== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) by mxrelay.nyi.freebsd.org (Postfix) with ESMTP id 4h93rl1k6Nz1RC for ; Wed, 29 Jul 2026 07:30:15 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from git (uid 1279) (envelope-from git@FreeBSD.org) id 410cc by gitrepo.freebsd.org (DragonFly Mail Agent v0.13+ on gitrepo.freebsd.org); Wed, 29 Jul 2026 07:30:15 +0000 To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Kristof Provost Subject: git: d68de8c2cd95 - stable/15 - authpf(8) read_config() should chop off trailing white space 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 List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list 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/15 X-Git-Reftype: branch X-Git-Commit: d68de8c2cd953a8df9db63ae50a9eb3e7f6d96dc Auto-Submitted: auto-generated Date: Wed, 29 Jul 2026 07:30:15 +0000 Message-Id: <6a69ac07.410cc.4c726878@gitrepo.freebsd.org> The branch stable/15 has been updated by kp: URL: https://cgit.FreeBSD.org/src/commit/?id=d68de8c2cd953a8df9db63ae50a9eb3e7f6d96dc commit d68de8c2cd953a8df9db63ae50a9eb3e7f6d96dc Author: Kristof Provost AuthorDate: 2026-07-21 13:10:16 +0000 Commit: Kristof Provost CommitDate: 2026-07-29 07:21:15 +0000 authpf(8) read_config() should chop off trailing white space if administrator mistakenly types into configuration file anchor=authpf_test where 'authpf_test' is followed by white space, the authpf(8) is going to use anchor 'authpf_test ' instead of the 'authpf_test' which is defined in pf.conf(5) as 'anchor authpf_test/*' issue kindly reported and patch submitted by Avinash Duduskar OK sashan@ PR: 296958 MFC after: 1 week Obtained from: OpenBSD, sashan , 2d12a8e44d Sponsored by: Rubicon Communications, LLC ("Netgate") (cherry picked from commit 04f25ef716f74d6bb7941750091c6cb4b51d0b4d) --- contrib/pf/authpf/authpf.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/contrib/pf/authpf/authpf.c b/contrib/pf/authpf/authpf.c index 14d3d41b6e21..b835737c5ee2 100644 --- a/contrib/pf/authpf/authpf.c +++ b/contrib/pf/authpf/authpf.c @@ -404,8 +404,8 @@ read_config(FILE *f) if (ap != &pair[2]) goto parse_error; - tp = pair[1] + strlen(pair[1]); - while ((*tp == ' ' || *tp == '\t') && tp >= pair[1]) + tp = pair[1] + strlen(pair[1]) - 1; + while (tp >= pair[1] && (*tp == ' ' || *tp == '\t')) *tp-- = '\0'; if (strcasecmp(pair[0], "anchor") == 0) {