chiark / gitweb /
automount: never consider our own mount point a prefix mount of us
authorLennart Poettering <lennart@poettering.net>
Wed, 19 May 2010 01:42:05 +0000 (03:42 +0200)
committerLennart Poettering <lennart@poettering.net>
Wed, 19 May 2010 01:42:05 +0000 (03:42 +0200)
fixme
src/automount.c

diff --git a/fixme b/fixme
index 969c6cd30a4e3d1474d9092293ce66c1b547bc91..0894c4701d175b6ff769542ab3784eaaf04a4393 100644 (file)
--- a/fixme
+++ b/fixme
@@ -65,7 +65,8 @@
 
 * teach dbus to talk to systemd when autospawning services
 
-* unix sockets chown()/chgrp()
+* Figure out which signal handlers we actually have to reset in the
+  forked off child
 
 Regularly:
 
index 465354f5556503f82f790c8b0f69c973ca1d1a04..32680461c24612d61ebe15c71a0d6a2169050d66 100644 (file)
@@ -59,6 +59,8 @@ static void repeat_unmout(const char *path) {
         assert(path);
 
         for (;;) {
+                /* If there are multiple mounts on a mount point, this
+                 * removes them all */
 
                 if (umount2(path, MNT_DETACH) >= 0)
                         continue;
@@ -118,6 +120,9 @@ int automount_add_one_mount_link(Automount *a, Mount *m) {
         if (!path_startswith(a->where, m->where))
                 return 0;
 
+        if (path_equal(a->where, m->where))
+                return 0;
+
         if ((r = unit_add_dependency(UNIT(m), UNIT_BEFORE, UNIT(a), true)) < 0)
                 return r;