From: Mark Huth Date: Wed, 5 Jul 2017 11:11:32 +0000 (+1000) Subject: Export internal PATH variable (RHBZ#1467878). X-Git-Tag: v1.16~7 X-Git-Url: http://git.annexia.org/?a=commitdiff_plain;h=90f6be5a33a2c23fffdd86053d37b8db7ae0d6b1;p=virt-what.git Export internal PATH variable (RHBZ#1467878). - Fixes virt-what failing if it's started without an environment, eg: $ env -i /sbin/virt-what ... or with python subprocess.Popen, eg: p = subprocess.Popen('/sbin/virt-what', shell=False, ... , env={}) --- diff --git a/virt-what.in b/virt-what.in index 39afedb..64ab770 100644 --- a/virt-what.in +++ b/virt-what.in @@ -74,6 +74,7 @@ test $# -gt 0 && fail "extra operand '$1'" prefix=@prefix@ exec_prefix=@exec_prefix@ PATH="${root}@libexecdir@:${root}/sbin:${root}/usr/sbin:${PATH}" +export PATH # Check we're running as root. EFFUID=$(id -u) || fail "failed to get current user id"