Merge pull request #458 from stephen-fox/removed-unsafe-shell-source

security: Removed unsafe relative path sourcing.
This commit is contained in:
Matt Churchyard
2022-07-21 09:30:20 +01:00
committed by GitHub

4
vm
View File

@@ -25,9 +25,7 @@
# POSSIBILITY OF SUCH DAMAGE.
# get libs
if [ -e "./lib/vm-core" ]; then
LIB="./lib"
elif [ -e "/usr/local/lib/vm-bhyve" ]; then
if [ -e "/usr/local/lib/vm-bhyve" ]; then
LIB="/usr/local/lib/vm-bhyve"
else
echo "unable to locate vm-bhyve libraries"