chiark / gitweb /
mount: add nosuid,nodev,noexec switches to /var/lock and /var/run
[elogind.git] / src / readahead-collect.c
index 75e7a2870bad679b937dadfc38757dbd6252ccf8..a9f544dd3ac4a29e30df58b139642a3ef88daa9b 100644 (file)
@@ -398,8 +398,8 @@ static int collect(const char *root) {
                         char_array_0(fn);
 
                         if ((k = readlink_malloc(fn, &p)) >= 0) {
-
                                 if (startswith(p, "/tmp") ||
+                                    endswith(p, " (deleted)") ||
                                     hashmap_get(files, p))
                                         /* Not interesting, or
                                          * already read */