diff --git a/samples/vboxwrapper/vbox_vboxmanage.cpp b/samples/vboxwrapper/vbox_vboxmanage.cpp index 8a775db260..6382a5323d 100644 --- a/samples/vboxwrapper/vbox_vboxmanage.cpp +++ b/samples/vboxwrapper/vbox_vboxmanage.cpp @@ -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