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/core/automount.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'src/core') diff --git a/src/core/automount.c b/src/core/automount.c index cec90cbb31..33a16e1810 100644 --- a/src/core/automount.c +++ b/src/core/automount.c @@ -587,10 +587,8 @@ static int automount_start(Unit *u) { assert(a); assert(a->state == AUTOMOUNT_DEAD || a->state == AUTOMOUNT_FAILED); - if (path_is_mount_point(a->where, false)) { - log_unit_error(u->id, - "Path %s is already a mount point, refusing start for %s", - a->where, u->id); + if (path_is_mount_point(a->where, false) > 0) { + log_unit_error(u->id, "Path %s is already a mount point, refusing start for %s", a->where, u->id); return -EEXIST; } -- cgit v1.2.3-54-g00ecf