-
Notifications
You must be signed in to change notification settings - Fork 439
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
vboxwrapper: don't create projects/virtualbox #5658
Conversation
If Vboxwrapper couldn't find the Vbox 'home dir' (normally ~/.VirtualBox) based on env vars, it would create one: projects/virtualbox (owned by boinc_projects, not boinc_master) This is wrong because 1) on startup, the client deletes anything in projects/ that's not a project directory 2) on Mac it causes installer error messages because the dir is not owned by boinc_master. Fix: don't create projects/virtualbox.
@computezrmle, could you please review this change? |
@@ -100,7 +100,9 @@ int VBOX_VM::initialize() { | |||
} | |||
#endif | |||
|
|||
// Determine the VirtualBox home directory. Overwrite as needed. | |||
// Determine the VirtualBox home directory. | |||
// NOTE: I'm not sure this is relevant; see |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
virtualbox_home_directory
is used to locate VBoxSVC.log
in vbox_common.cpp
.
Hence, yes it needs to be set.
The docs mention different directories to put
It looks like the patch covers the situation on Windows only. On Linux and Oracle Solaris |
Other than the comment, is the change OK? |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #5658 +/- ##
============================================
- Coverage 10.53% 10.53% -0.01%
Complexity 1068 1068
============================================
Files 279 279
Lines 35868 35874 +6
Branches 8409 8412 +3
============================================
Hits 3780 3780
- Misses 31694 31700 +6
Partials 394 394 |
If Vboxwrapper couldn't find the Vbox 'home dir' (normally ~/.VirtualBox) based on env vars, it would create one: projects/virtualbox (owned by boinc_projects, not boinc_master)
This is wrong because
that's not a project directory
because the dir is not owned by boinc_master.
Fix: don't create projects/virtualbox.