Opened 16 years ago
Closed 16 years ago
#3270 closed defect (fixed)
prefer username for tmpdir creation -> fixed in SVN
Reported by: | Martin Kudlvasr | Owned by: | |
---|---|---|---|
Component: | other | Version: | VirtualBox 2.1.2 |
Keywords: | Cc: | ||
Guest type: | other | Host type: | Linux |
Description
On linux host, when runnin virtualbox as root and then as regular user, the following error emerges: Wrong owner (0) of '/tmp/.vbox-mkudlvasr-ipc' When virtualbox is not run from command line, the error is more cryptic: Callee RC: NS_ERROR_FACTORY_NOT_REGISTERED 0x80040154 This is because the tmpdir is not deleted. I understand from the sources, that it is not deleted for security reasons. Ok, but why not to name the dir .vbox-root-ipc, when vbox is run by root? Fix - prefer username (as in getpwuid) instead of trusting just the env variables. Patch attached. The patch doesn't include proper #ifdefs for non-unix systems. I just don't understand the various macros well enough.
Attachments (1)
Change History (3)
by , 16 years ago
Attachment: | virtualbox-ose-sudo-tmpdir.diff added |
---|
comment:1 by , 16 years ago
Summary: | prefer username for tmpdir creation → prefer username for tmpdir creation -> fixed in SVN |
---|
Sorry for the delay in responding here. This has now been fixed in the SVN sources. Thanks!