summaryrefslogtreecommitdiff
path: root/src/core/automount.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2015-04-07 16:03:45 +0200
committerLennart Poettering <lennart@poettering.net>2015-04-07 16:03:45 +0200
commitda00518b3f3a8b08d521c4b72068eafa2db566cc (patch)
treecbfbc00d68a4cc59474a382510e8d5008c2ab594 /src/core/automount.c
parent2c0223282d804ec796c3dc7e0d9087717314ec6a (diff)
path-util: fix more path_is_mount e792e890f fallout
Diffstat (limited to 'src/core/automount.c')
-rw-r--r--src/core/automount.c6
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;
}