add missing sudo
authoranton <anton@openbsd.org>
Fri, 17 Sep 2021 05:59:16 +0000 (05:59 +0000)
committeranton <anton@openbsd.org>
Fri, 17 Sep 2021 05:59:16 +0000 (05:59 +0000)
regress/sbin/pfctl/Makefile

index 7813ad3..7beb24d 100644 (file)
@@ -1,4 +1,4 @@
-# $OpenBSD: Makefile,v 1.231 2017/12/12 19:49:19 bluhm Exp $
+# $OpenBSD: Makefile,v 1.232 2021/09/17 05:59:16 anton Exp $
 
 # TARGETS
 # pf: feed pfNN.in through pfctl and check whether the output matches pfNN.ok
@@ -67,7 +67,7 @@ PFAIL_TARGETS+=pfail${n}
 PFAIL_UPDATES+=pfail${n}-update
 
 pfail${n}:
-       ${PFCTL} -o none -nv -f - < ${.CURDIR}/pfail${n}.in 2>&1 | \
+       ${SUDO} ${PFCTL} -o none -nv -f - < ${.CURDIR}/pfail${n}.in 2>&1 | \
            diff -u ${.CURDIR}/pfail${n}.ok /dev/stdin
 
 pfail${n}-update: