From nobody Wed Jul 29 07:30:00 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 4h93rZ13R0z6mq3S for ; Wed, 29 Jul 2026 07:30: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 "YR1" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 4h93rY6FzXz3KgK for ; Wed, 29 Jul 2026 07:30:05 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1785310205; 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=pVa3GlgTCnfXDzJNhcOj87CLPvJOrCHIOWcMKLKmV+0=; b=OgjBpwU5S72U3PXPOpaWBGLoPpvWSN2kgEoKMvRc4rAq/IvS4rd/8XAqFSikKQ/2QsLYQp WpC5u6kSVSaqrBu2SeHQhI8TOYrvHzCMbtXoNppTacpL7W4etL96sCEBVdJNIN92xpI3w3 gxXJloSfBKzJe5uoBjm/zrWH4zuhkqe1LG8NXD4qjUShevZWUAlngpej4D1cLL4YkZsXhL MhkV7nCqUZM/Bty3Ncy9s6AkUw0Y6wRguPmKIeMimr94Oeot30ZrO8Z1nJ8Xfb2edylBIw aA6wewa/mZ5fk4y2eYssmamC8tAxe8fs0VS4odtYuBQY0U4HS62Z8YoDbBkhOA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1785310205; a=rsa-sha256; cv=none; b=m7a70HiwQyn7C4r1n1oDgU89zv21SpjIfNrFC+a8xy1F8/0asJHSxIA8Mad3Gc4oBD5zbg dsr4dooyHIaW0WGTPLMLFYMHbYJE9JM6AapHBw0K991v0PaAXbj1Wa2SzpW2Op9W2fA44x QbWsUIHrPMPlXfhPmVtP9mEEgok8vZjKjANxZb5/K37Yui9i1EyCPtyGZJ83hy3y4IHEp/ THfVxcZ4zGbSjrCOJ2BvxJKgDSNOyNryhSvBC0yHlVzclxmuOFDj6nLPFR5MsLjCgYN60S mbUi+rKQ/ejdPNmJLnAmOWVA4GVIRungolCyNtUSH6wW1Wg/jD+TUQFGdjYgPQ== 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=1785310205; 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=pVa3GlgTCnfXDzJNhcOj87CLPvJOrCHIOWcMKLKmV+0=; b=sMoP0dM3oOwBeeR4GV5NM1LM/7KyDVCBSckwK6u4OAH5P2COEt12ozz1oRLPoQL0Lxluu/ Y3+kUokJvrwHJvebhO0G7zWRuUTszsBSHbw7TKoE1jeR/YKt6mzN6nzDoTcSSm7G0A4Mbs Hz+5xYfdLBqSGKHu/dsiZJWyPklpPf0iMk4ZujkebRdGbS4ivAf4HSi1EGQg5GGITpmErn yWo//M9X9ekzmGPHf5H1306OsqzK/TI6d/6Ar3J2Df0pq2hYweSvel+KMsb3dw4i4Ophak kI/6XKIu/09Nk0RPbkiAZUQYGUIUN+Wqo8M2+NZ6FFMCUrgYtl/0PIehp0zUQw== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) by mxrelay.nyi.freebsd.org (Postfix) with ESMTP id 4h93rY4nQLz1r6 for ; Wed, 29 Jul 2026 07:30:05 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from git (uid 1279) (envelope-from git@FreeBSD.org) id 3f243 by gitrepo.freebsd.org (DragonFly Mail Agent v0.13+ on gitrepo.freebsd.org); Wed, 29 Jul 2026 07:30:00 +0000 To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Kristof Provost Subject: git: c8af571bf1f8 - stable/14 - 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/14 X-Git-Reftype: branch X-Git-Commit: c8af571bf1f88e6445c8e9a449f600c6fef25252 Auto-Submitted: auto-generated Date: Wed, 29 Jul 2026 07:30:00 +0000 Message-Id: <6a69abf8.3f243.b1d22cd@gitrepo.freebsd.org> The branch stable/14 has been updated by kp: URL: https://cgit.FreeBSD.org/src/commit/?id=c8af571bf1f88e6445c8e9a449f600c6fef25252 commit c8af571bf1f88e6445c8e9a449f600c6fef25252 Author: Kristof Provost AuthorDate: 2026-07-21 13:10:16 +0000 Commit: Kristof Provost CommitDate: 2026-07-29 07:29:29 +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 9858c1c50ced..58ee73bb97ca 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) {