]> git.proxmox.com Git - mirror_lxc.git/commit - src/lxc/start.c
start: Fix print_top_failing_dir for /var/lib/lxc
authorStéphane Graber <stgraber@ubuntu.com>
Thu, 27 Feb 2014 22:32:39 +0000 (17:32 -0500)
committerStéphane Graber <stgraber@ubuntu.com>
Thu, 27 Feb 2014 22:47:25 +0000 (17:47 -0500)
commit99b71824347e3681edec0b5af46dd91e849eae94
tree4f5dcfbad8904e468a901605241a9b08c9268aba
parentfda03e44e6dbe7bd13f68e0751b08e0fe5584106
start: Fix print_top_failing_dir for /var/lib/lxc

In the case where /var/lib/lxc itself was not accessible,
print_top_failing_dir would fail to print the error message.

This fixes it and also change the initial access check for X_OK instead
of R_OK (to match what we actually need and print_top_failing_dir's own
check).

Signed-off-by: Stéphane Graber <stgraber@ubuntu.com>
Acked-by: Serge Hallyn <serge.hallyn@ubuntu.com>
src/lxc/start.c