Pass env(1) to ${SUDO}, not the other way around. Solves an issue when running
authoranton <anton@openbsd.org>
Mon, 5 Feb 2018 18:28:15 +0000 (18:28 +0000)
committeranton <anton@openbsd.org>
Mon, 5 Feb 2018 18:28:15 +0000 (18:28 +0000)
commit957ba0a7e0b82c5fd052fbb3c55ada1e5c9246b6
tree914ab7975d00a15f6f2dd48e18c682630b7a2c1c
parentb86f193f5bffd91ad11a5fe891d8a18720e770df
Pass env(1) to ${SUDO}, not the other way around. Solves an issue when running
the tests as a non-root and doas is not configured to preserve the OBJDIR
variable. While here, ensure OBJDIR is defined and fix typos.

ok bluhm@
regress/usr.sbin/ifstated/Makefile
regress/usr.sbin/ifstated/ifstated
regress/usr.sbin/ifstated/statemachine