]> git.proxmox.com Git - mirror_lxc.git/blobdiff - src/lxc/start.c
start: Fix print_top_failing_dir for /var/lib/lxc
[mirror_lxc.git] / src / lxc / start.c
index f44be963c87092bac79b16d52bee32cbb5cbbba4..fe3d09335b2a0c6cff10c374c13548a438865312 100644 (file)
@@ -94,8 +94,6 @@ static void print_top_failing_dir(const char *path)
        while (p < e) {
                while (p < e && *p == '/') p++;
                while (p < e && *p != '/') p++;
-               if (p >= e)
-                       return;
                saved = *p;
                *p = '\0';
                if (access(copy, X_OK)) {
@@ -666,7 +664,7 @@ static int do_start(void *data)
                }
        }
 
-       if (access(handler->lxcpath, R_OK)) {
+       if (access(handler->lxcpath, X_OK)) {
                print_top_failing_dir(handler->lxcpath);
                goto out_warn_father;
        }