[Bug 296958] authpf(8): read_config() never strips trailing whitespace, silently misconfiguring the gateway

[email protected] Wed, 29 Jul 2026 07:30:50 +0000
Newsgroups gmane.os.freebsd.devel.pf4freebsd
Message-ID <[email protected]/bugzilla/>
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D296958

--- Comment #4 from [email protected] ---
A commit in branch stable/15 references this bug:

URL:
https://cgit.FreeBSD.org/src/commit/?id=3Dd68de8c2cd953a8df9db63ae50a9eb3e7=
f6d96dc

commit d68de8c2cd953a8df9db63ae50a9eb3e7f6d96dc
Author:     Kristof Provost <[email protected]>
AuthorDate: 2026-07-21 13:10:16 +0000
Commit:     Kristof Provost <[email protected]>
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=3Dauthpf_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 <avinash.duduskar (_at_) gmail (_dot_) com>

    OK sashan@

    PR:             296958
    MFC after:      1 week
    Obtained from:  OpenBSD, sashan <[email protected]>, 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(-)

--=20
You are receiving this mail because:
You are the assignee for the bug.=