mirror of https://github.com/BOINC/boinc.git
VBOX: Fix search path detection code introduced in caf5255
.
This commit is contained in:
parent
0c0cc0dc0c
commit
d0fb1e64c2
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue