From 3a8f999e5ca48e027e9221ff38ea2682ab9aca3b Mon Sep 17 00:00:00 2001 From: bluhm Date: Tue, 12 Jul 2016 15:44:58 +0000 Subject: [PATCH] Allow to run the syslogd tests as root without SUDO also if the libevent method environment is set. --- regress/usr.sbin/syslogd/Syslogd.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/regress/usr.sbin/syslogd/Syslogd.pm b/regress/usr.sbin/syslogd/Syslogd.pm index fae55ed297f..8e1a42607b9 100644 --- a/regress/usr.sbin/syslogd/Syslogd.pm +++ b/regress/usr.sbin/syslogd/Syslogd.pm @@ -1,4 +1,4 @@ -# $OpenBSD: Syslogd.pm,v 1.18 2016/06/22 19:29:29 bluhm Exp $ +# $OpenBSD: Syslogd.pm,v 1.19 2016/07/12 15:44:58 bluhm Exp $ # Copyright (c) 2010-2015 Alexander Bluhm # Copyright (c) 2014 Florian Riehm @@ -139,7 +139,7 @@ sub ttykill { sub child { my $self = shift; - my @sudo = $ENV{SUDO} ? $ENV{SUDO} : (); + my @sudo = $ENV{SUDO} ? $ENV{SUDO} : "env"; my @pkill = (@sudo, "pkill", "-KILL", "-x", "syslogd"); my @pgrep = ("pgrep", "-x", "syslogd"); -- 2.20.1