]> git.proxmox.com Git - mirror_lxc.git/commit - src/lxc/monitor.c
Set a reasonable fallback for get_rundir
authorStéphane Graber <stgraber@ubuntu.com>
Tue, 18 Feb 2014 22:33:51 +0000 (17:33 -0500)
committerStéphane Graber <stgraber@ubuntu.com>
Tue, 18 Feb 2014 23:45:22 +0000 (18:45 -0500)
commit97a696c6e5ac8b82ecd10a90ca69427af685bd1f
tree35494334a94ea2cd75160de599b60e96c8d0609e
parent8525b5e51eaa34668c2697484c914e937282d59b
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@ubuntu.com>
Acked-by: Serge E. Hallyn <serge.hallyn@ubuntu.com>
src/lxc/lxclock.c
src/lxc/monitor.c
src/lxc/utils.c