summaryrefslogtreecommitdiff
path: root/regress/usr.sbin
diff options
context:
space:
mode:
authorAnton Lindqvist <anton@cvs.openbsd.org>2021-10-11 05:46:15 +0000
committerAnton Lindqvist <anton@cvs.openbsd.org>2021-10-11 05:46:15 +0000
commit74239dc3fdfb1c542a8965e48d007f92cc10ab17 (patch)
tree037165e9a26c7214e02984f5b183456bf6c3fadb /regress/usr.sbin
parentb433c061d33279aa0ffdf648f3d27b1db05fbc56 (diff)
Invoke ${SUDO} before env(1) and not the other way around. Otherwise,
the OBJDIR environment variable will not necesarily be preserved.
Diffstat (limited to 'regress/usr.sbin')
-rw-r--r--regress/usr.sbin/snmpd/Makefile4
1 files changed, 2 insertions, 2 deletions
diff --git a/regress/usr.sbin/snmpd/Makefile b/regress/usr.sbin/snmpd/Makefile
index 25cae330fd8..466a2cc93de 100644
--- a/regress/usr.sbin/snmpd/Makefile
+++ b/regress/usr.sbin/snmpd/Makefile
@@ -1,9 +1,9 @@
-# $OpenBSD: Makefile,v 1.2 2019/10/03 11:05:54 martijn Exp $
+# $OpenBSD: Makefile,v 1.3 2021/10/11 05:46:14 anton Exp $
# Regress tests for snmpd
REGRESS_TARGETS = run-regress-snmpd
run-regress-snmpd:
- env OBJDIR=${.OBJDIR} ${SUDO} sh ${.CURDIR}/snmpd.sh
+ ${SUDO} env OBJDIR=${.OBJDIR} sh ${.CURDIR}/snmpd.sh
.include <bsd.regress.mk>