From nobody Wed Jul 29 07:30:00 2026 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 4h93rS6Bqtz6mq1K for ; Wed, 29 Jul 2026 07:30:00 +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 4h93rS46JRz3KVB for ; Wed, 29 Jul 2026 07:30:00 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1785310200; 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=VNGMTNnfxlL6KOTHbEnxn1qCC2PDKlP7JtbakItZd34TsCRJG9E6Jiq1cDtKEGJtLbTyCH yAw0yu7p/9lhomRBxXPhuG6iVbPk/tGbxj0csQfM5is4bcvYREdOQdLg9VJagZbrt9yX2B g2bIR0D8VxhOeh5J0U3Fx4D/iZrmC+hrbO83CzWkpBBLXqE9jAC2AqzBgvQEpG/EoOS55x R9xBVr/XXvaaB8oEwPDdJf3ryU7I/eR9LusvRvxfDlQP5Fhy/hP4B4w/v5u4H8r5vwIXHF J8kmQSSoezOYV+kT1JOjh0LQzZ8lDWbs+KGpDKcKysy3G5+X7rUI/giouUwTkA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1785310200; a=rsa-sha256; cv=none; b=I59xnh/sNBDBQ3UNSN3gBUSNDHImPRMOm2IuM4W5Rb/9SohS/QZoB37OoDPZc+KrF+txtm UFEfGdmdIhOud7vlmeYvp4Uof9oHUIICcfuC284w6IBg4PCJTWvFvlRqM4XVZm25Sc/FN0 bEEf7+2YSBS2/t6iVEMG7XVbalY4mpsYIMLcUeUPMUjXst2a5IN0BwwY+9I53Jj9UpnRM7 h6dRmqKaKvdTGbYPkjrMHNXUGaDvEs0RPs6BtIi5Gizhrc1+vaLBs9ZR9YI2GaPvT/9OZt rn17LkCX8RIENybIRYBwhI22Dbqgpp3Y1zbk/AnHFYAyOYCZcLQOi6c4AKb6wg== 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=1785310200; 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=I26q/9qDeWm4buRzW099PaqUmj5uijx8myVpKiQiA0L60WZHoxihEViBi9K6vz7XfrUg4y 9fEmB5GFf6ug83HngddeKzpSZKJYZ+mYBMf2rtRjjx0oxNxZBrgF5VxW4sULPAPaHxLiJG 537ZvKtJWsA8v+UWLbtx6m2WAYwMTnI9kpOylEa6DCi02ucF+7oi1kKstFZVlhQ7PIbhEu P/SXhEjHLlUmZJ13S7o1wNOPGmR9jNtcDE6Tfw2loLpsZiQFzBUh25gawhrQcvKnvcTY62 ix7JRkVEkI3q3S1tANZZN7COeQmvujRODZo+ATBTegVML9jmTuzgIG38wR8DmQ== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) by mxrelay.nyi.freebsd.org (Postfix) with ESMTP id 4h93rS2qZQz261 for ; Wed, 29 Jul 2026 07:30:00 +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: 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 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) {