Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 05 Jan 2026 10:49:50 +0000
From:      bugzilla-noreply@freebsd.org
To:        bugs@FreeBSD.org
Subject:   [Bug 292184] periodic/security/520.pfdenied - anchor name must not be empty
Message-ID:  <bug-292184-227-BnWcU7KYm4@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-292184-227@https.bugs.freebsd.org/bugzilla/>

index | next in thread | previous in thread | raw e-mail

https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=292184

--- Comment #1 from Kristof Provost <kp@freebsd.org> ---
I don't run that task, so can't easily test. Can you confirm this works?

diff --git a/usr.sbin/periodic/etc/security/520.pfdenied
b/usr.sbin/periodic/etc/security/520.pfdenied
index d87dfa0ae64c..36ef1ec1a40e 100755
--- a/usr.sbin/periodic/etc/security/520.pfdenied
+++ b/usr.sbin/periodic/etc/security/520.pfdenied
@@ -43,7 +43,11 @@ then
        TMP=`mktemp -t security`
        for _a in "" $(pfctl -a "blacklistd" -sA 2>/dev/null) $(pfctl -a
"blocklistd" -sA 2>/dev/null) ${security_status_pfdenied_additionalanchors}
        do
-               pfctl -a "${_a}" -sr -v -z 2>/dev/null | \
+               anchoropt=""
+               if [ -n "${_a}" ]; then
+                       anchoropt="-a \"${_a}\""
+               fi
+               pfctl ${anchoropt} -sr -v -z 2>/dev/null | \
                nawk '{if (/^block/) {buf=$0; getline; gsub(" +"," ",$0); if
($5 > 0) print buf$0;} }' >> ${TMP}
        done
        if [ -s ${TMP} ]; then

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

home | help

Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-292184-227-BnWcU7KYm4>