From 74239dc3fdfb1c542a8965e48d007f92cc10ab17 Mon Sep 17 00:00:00 2001 From: Anton Lindqvist Date: Mon, 11 Oct 2021 05:46:15 +0000 Subject: Invoke ${SUDO} before env(1) and not the other way around. Otherwise, the OBJDIR environment variable will not necesarily be preserved. --- regress/usr.sbin/snmpd/Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'regress/usr.sbin/snmpd') 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 -- cgit v1.2.3