chiark / gitweb /
journal: implicitly add code location to all messages logged with the native interface
[elogind.git] / src / umount.c
index 4e036d82a30555988c18fea2c4dc8a8333f4b78c..0a63d23a01bb1b18ea2703237646c60a20792ce0 100644 (file)
@@ -410,7 +410,11 @@ static int mount_points_list_umount(MountPoint **head, bool *changed, bool log_e
         assert(head);
 
         LIST_FOREACH_SAFE(mount_point, m, n, *head) {
-                if (streq(m->path, "/")) {
+                if (path_equal(m->path, "/")
+#ifndef HAVE_SPLIT_USR
+                    || path_equal(m->path, "/usr")
+#endif
+                ) {
                         n_failed++;
                         continue;
                 }