From 90f6be5a33a2c23fffdd86053d37b8db7ae0d6b1 Mon Sep 17 00:00:00 2001 From: Mark Huth Date: Wed, 5 Jul 2017 21:11:32 +1000 Subject: [PATCH] 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={}) --- virt-what.in | 1 + 1 file changed, 1 insertion(+) 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" -- 1.8.3.1