diff options
Diffstat (limited to 'src/core/automount.c')
-rw-r--r-- | src/core/automount.c | 6 |
1 files changed, 2 insertions, 4 deletions
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; } |