From nobody Wed Jul 22 09:29:32 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 4h4pqk32MBz6lt28 for ; Wed, 22 Jul 2026 09:29:38 +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 4h4pqk1zXPz3Dqw for ; Wed, 22 Jul 2026 09:29:38 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1784712578; 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=LekwZ38ySSFKdOooFZytqPN7qk+zQopVJfoqx3aPWaE=; b=dc443xupthFdprQuIt4+9KihifLH1y6oEuchwd68Lh9JYeEzggS4eEK4LVzISImoLlHdkU DHrJ9W/CLDVhmms5+IepMnwFFikfQW0n8J5l+EcQ0iftVf2cRgm4vnliCJOvj0mxEYYD3l GjIsDXV1nrg3nPaTb/qwlKvIWQ13Po5rvV7Db9LLXbeO918sGNfB4Vr1CRj6LpYAlwhZpv 7z8cvCHZEyyOTDak1WdeWzqlV1Kr5wTMHGycP1m/jRl9PCGV1W1DWyI2L6/HZf49CCYkvo PA+4W6v7uZ38L3Sw9YSBFEBzDYfdPBgJD2YHu8vRAbItUAoNrWLCQ5LZZrUK4Q== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1784712578; a=rsa-sha256; cv=none; b=U6+8rjZF7Qy6kJ7LgPA7v4Xxe045gJPRlMgHYIk8XERDd3IAhKwM6X823Kf0gRfRS6F91a ECyESfs6eiHTF0smHVANLf1PoPwAF0bV01mpP+oQpMck+RSJYu/b+SjtRLDn5H57wmaQGL F+tpw3z+QndmC93BP4JiVrw8Tf80HpXyCmUxa675cmNj6BsrhFiKlB7oeZDcV3LHFUIF6Z c/hFCqYVSxqPuR3JE5eFZj4bSNa4i5qoVT2CQLs8UE2acKZNy+x00fyNUg74JX+srp8+1Y vpA8JCjgZZhp4aBlJWlP+GQERy2vExrCld0xAhQorDQx2nMDTZqDZ2Zn/3hZaw== 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=1784712578; 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=LekwZ38ySSFKdOooFZytqPN7qk+zQopVJfoqx3aPWaE=; b=cLuDho1uX8+5cPYCD/tFEgGbni6pI0Ed3zBEZbfBG0HdRSBE/cXBhdPc2O106Yosn2SViR CEettYeJBlfDdV08zC5Cjtzg9DvxWTBzEGKFowWQV601ivt+6TS+TPxJSVAjnOCcDz350a UdOsfV0InN/GCNd4PZJTb20HUqUf6n0cxA7jGdbwN9Yn1E9SbyG6UAIIBbli49Yt76f0UE ZdJQkZervEA7nEHQGDjDn9EYNFlMf5h1sG7TneFdAHUCyVgVOz4cG4Q06YgjioB3sRmHRW 9138EyyptRc7bpWPRNp9Bvkk2nOWiEJqPUjUgiMQklob9hqqOWU6sOhlhzfeWA== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) by mxrelay.nyi.freebsd.org (Postfix) with ESMTP id 4h4pqk104Jz1RR7 for ; Wed, 22 Jul 2026 09:29:38 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from git (uid 1279) (envelope-from git@FreeBSD.org) id 25c35 by gitrepo.freebsd.org (DragonFly Mail Agent v0.13+ on gitrepo.freebsd.org); Wed, 22 Jul 2026 09:29:32 +0000 To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Kristof Provost Subject: git: 04f25ef716f7 - main - 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/main X-Git-Reftype: branch X-Git-Commit: 04f25ef716f74d6bb7941750091c6cb4b51d0b4d Auto-Submitted: auto-generated Date: Wed, 22 Jul 2026 09:29:32 +0000 Message-Id: <6a608d7c.25c35.1805af92@gitrepo.freebsd.org> The branch main has been updated by kp: URL: https://cgit.FreeBSD.org/src/commit/?id=04f25ef716f74d6bb7941750091c6cb4b51d0b4d commit 04f25ef716f74d6bb7941750091c6cb4b51d0b4d Author: Kristof Provost AuthorDate: 2026-07-21 13:10:16 +0000 Commit: Kristof Provost CommitDate: 2026-07-22 09:29:14 +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") --- 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) {