From da00518b3f3a8b08d521c4b72068eafa2db566cc Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Tue, 7 Apr 2015 16:03:45 +0200 Subject: path-util: fix more path_is_mount e792e890f fallout --- src/nspawn/nspawn.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/nspawn') diff --git a/src/nspawn/nspawn.c b/src/nspawn/nspawn.c index 9371d361eb..6789281d81 100644 --- a/src/nspawn/nspawn.c +++ b/src/nspawn/nspawn.c @@ -889,7 +889,7 @@ static int mount_all(const char *dest) { return log_oom(); t = path_is_mount_point(where, true); - if (t < 0) { + if (t < 0 && t != -ENOENT) { log_error_errno(t, "Failed to detect whether %s is a mount point: %m", where); if (r == 0) @@ -1028,7 +1028,7 @@ static int mount_cgroup_hierarchy(const char *dest, const char *controller, cons to = strjoina(dest, "/sys/fs/cgroup/", hierarchy); r = path_is_mount_point(to, false); - if (r < 0) + if (r < 0 && r != -ENOENT) return log_error_errno(r, "Failed to determine if %s is mounted already: %m", to); if (r > 0) return 0; -- cgit v1.2.3-54-g00ecf