chiark / gitweb /
mount-setup: introduce mount_point_is_api() call
[elogind.git] / mount.c
diff --git a/mount.c b/mount.c
index b656ac2f74a7a8a1017fdbca45c886bf28dad774..325f2d51e56be54cd916707fe7d583190ed96eb9 100644 (file)
--- a/mount.c
+++ b/mount.c
@@ -159,7 +159,7 @@ static int mount_add_path_links(Mount *m) {
                 n = (Mount*) other;
 
                 if (n == m)
-                        return 0;
+                        continue;
 
                 if (path_startswith(m->where, n->where)) {
 
@@ -472,7 +472,7 @@ void mount_fd_event(Manager *m, int events) {
 const UnitVTable mount_vtable = {
         .suffix = ".mount",
 
-        .init = unit_load_fragment_and_dropin,
+        .init = unit_load_fragment_and_dropin_optional,
         .done = mount_done,
         .coldplug = mount_coldplug,