svn commit: r357289 - stable/12/usr.sbin/periodic/etc/security

Kristof Provost kp at FreeBSD.org
Thu Jan 30 09:56:57 UTC 2020


Author: kp
Date: Thu Jan 30 09:56:56 2020
New Revision: 357289
URL: https://svnweb.freebsd.org/changeset/base/357289

Log:
  MFC r356816:
  
  Fix pfdenied not returning any results
  
  When _a is empty we end up with an invalid invocation of pfctl, and no output.
  We must add quotes to make it clear to pfctl that we're passing an empty anchor
  name.
  
  PR:		224415
  Submitted by:	sigsys AT gmail.com

Modified:
  stable/12/usr.sbin/periodic/etc/security/520.pfdenied
Directory Properties:
  stable/12/   (props changed)

Modified: stable/12/usr.sbin/periodic/etc/security/520.pfdenied
==============================================================================
--- stable/12/usr.sbin/periodic/etc/security/520.pfdenied	Thu Jan 30 09:41:48 2020	(r357288)
+++ stable/12/usr.sbin/periodic/etc/security/520.pfdenied	Thu Jan 30 09:56:56 2020	(r357289)
@@ -46,7 +46,7 @@ then
 	TMP=`mktemp -t security`
 	for _a in "" $(pfctl -a "blacklistd" -sA 2>/dev/null)
 	do
-		pfctl -a ${_a} -sr -v -z 2>/dev/null | \
+		pfctl -a "${_a}" -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


More information about the svn-src-all mailing list