Skip to content

Commit e12ec5f

Browse files
committed
Revert "blocklist-helper: Silence a bogus pf warning"
This reverts commit 2347ca2. A fix has been implemented in 99560fe ("pfctl: Do not warn if there is no Ethernet anchor"). Revert this commit to avoid having differences with upstream. MFC after: 2 days
1 parent 6f0942b commit e12ec5f

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

contrib/blocklist/libexec/blocklistd-helper

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -258,7 +258,7 @@ flush)
258258
pf)
259259
# dynamically determine which anchors exist
260260
for anchor in $(/sbin/pfctl -a "$2" -s Anchors 2> /dev/null); do
261-
/sbin/pfctl -a "$anchor" -t "port${anchor##*/}" -T flush 2> /dev/null
261+
/sbin/pfctl -a "$anchor" -t "port${anchor##*/}" -T flush
262262
/sbin/pfctl -a "$anchor" -F rules
263263
done
264264
echo OK

libexec/blocklistd-helper/blacklistd-helper

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -279,7 +279,7 @@ flush)
279279
pf)
280280
# dynamically determine which anchors exist
281281
for anchor in $(/sbin/pfctl -a "$2" -s Anchors 2> /dev/null); do
282-
/sbin/pfctl -a "$anchor" -t "port${anchor##*/}" -T flush 2> /dev/null
282+
/sbin/pfctl -a "$anchor" -t "port${anchor##*/}" -T flush
283283
/sbin/pfctl -a "$anchor" -F rules
284284
done
285285
echo OK

0 commit comments

Comments
 (0)