[lxc-devel] [lxc/lxc] 97a696: Set a reasonable fallback for get_rundir
GitHub
noreply at github.com
Tue Feb 18 23:45:40 UTC 2014
Branch: refs/heads/master
Home: https://github.com/lxc/lxc
Commit: 97a696c6e5ac8b82ecd10a90ca69427af685bd1f
https://github.com/lxc/lxc/commit/97a696c6e5ac8b82ecd10a90ca69427af685bd1f
Author: Stéphane Graber <stgraber at ubuntu.com>
Date: 2014-02-18 (Tue, 18 Feb 2014)
Changed paths:
M src/lxc/lxclock.c
M src/lxc/monitor.c
M src/lxc/utils.c
Log Message:
-----------
Set a reasonable fallback for get_rundir
If get_rundir can't find XDG_RUNTIME_DIR in the environment, it'll
attempt to build a path using ~/.cache/lxc/run/. Should that fail
because of missing $HOME in the environment, it'll then return NULL an
all callers will fail in that case.
Signed-off-by: Stéphane Graber <stgraber at ubuntu.com>
Acked-by: Serge E. Hallyn <serge.hallyn at ubuntu.com>
More information about the lxc-devel
mailing list