From c4a6233acd4fb6ec0d62d95bd6a996f2cb5f79fc Mon Sep 17 00:00:00 2001 From: Simon Rettberg Date: Mon, 18 May 2015 19:05:11 +0200 Subject: Hardwired path of whoami/id/getent, but we should check all scripts and force PATH in critical ones --- .../modules/vmware/data/opt/openslx/vmchooser/vmware/run-virt.include | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'remote/modules/vmware') diff --git a/remote/modules/vmware/data/opt/openslx/vmchooser/vmware/run-virt.include b/remote/modules/vmware/data/opt/openslx/vmchooser/vmware/run-virt.include index 471a207c..3d55fe78 100644 --- a/remote/modules/vmware/data/opt/openslx/vmchooser/vmware/run-virt.include +++ b/remote/modules/vmware/data/opt/openslx/vmchooser/vmware/run-virt.include @@ -428,7 +428,7 @@ conffile="${confdir}/run-vmware.conf" # diskfile diskfile="${vmpath}" # users vmware config folder -[ -z "${HOME}" ] && HOME=$(getent passwd "$(whoami)" | awk -F ':' '{print $6}') +[ -z "${HOME}" ] && HOME=$(/usr/bin/getent passwd "$(/usr/bin/whoami)" | awk -F ':' '{print $6}') vmhome="${HOME}/.vmware" # get several version infos for vmware/player -- cgit v1.2.3-55-g7522