X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=elogind.git;a=blobdiff_plain;f=src%2Freadahead-collect.c;h=a9f544dd3ac4a29e30df58b139642a3ef88daa9b;hp=75e7a2870bad679b937dadfc38757dbd6252ccf8;hb=a55c7d2ea0033487a3a5b784035689e3bebf6e94;hpb=5b61848df2ce706b9a2915ae180bced0e9debd34 diff --git a/src/readahead-collect.c b/src/readahead-collect.c index 75e7a2870..a9f544dd3 100644 --- a/src/readahead-collect.c +++ b/src/readahead-collect.c @@ -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 */