VBOX: Fix search path detection code introduced in caf5255.

This commit is contained in:
Rom Walton 2015-10-16 11:12:52 -04:00
parent 0c0cc0dc0c
commit d0fb1e64c2
1 changed files with 2 additions and 2 deletions

View File

@ -98,10 +98,10 @@ int VBOX_VM::initialize() {
}
#else
old_path = getenv("PATH");
if(boinc_file_exists("/usr/local/bin/VboxManage")) {
if(boinc_file_exists("/usr/local/bin/VBoxManage")) {
new_path = "/usr/local/bin/:" + old_path;
}
if(boinc_file_exists("/usr/bin/VboxManage")) {
if(boinc_file_exists("/usr/bin/VBoxManage")) {
new_path = "/usr/bin/:" + old_path;
}
// putenv does not copy its input buffer, so we must use setenv