Actions
Bug #1059
open
PP
The save and load commands do not use the same default home directory
Bug #1059:
The save and load commands do not use the same default home directory
Status:
Confirmed
Priority:
Normal
Assignee:
-
Target version:
-
Start date:
08/25/2016
Due date:
% Done:
0%
Estimated time:
Description
The save command does not consider the LTTNG_HOME environment variable (nor HOME) because it uses utils_get_user_home_dir(), whereas the load command uses utils_get_home_dir().
Therefore if LTTNG_HOME is set (or if $HOME has a different value than the entry in /etc/passwd), a save and load sequence does not find the session configuration file.
To remain consistent, I think the value of utils_get_home_dir() should be sent from the client to the session daemon at save time, so that, from the user's perspective, both commands are synchronized on the same environment variables.
Use case: this bug makes the save/load operations impossible to do in a virtual environment.
JG Updated by Jérémie Galarneau almost 10 years ago
- Status changed from New to Confirmed
Actions