diff options
Diffstat (limited to 'src/readahead-collect.c')
-rw-r--r-- | src/readahead-collect.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/readahead-collect.c b/src/readahead-collect.c index 47095b1f7c..c8490b5d3c 100644 --- a/src/readahead-collect.c +++ b/src/readahead-collect.c @@ -324,8 +324,10 @@ static int collect(const char *root) { if ((k = readlink_malloc(fn, &p)) >= 0) { - if (hashmap_get(files, p)) - /* Already read */ + if (startswith(p, "/tmp") || + hashmap_get(files, p)) + /* Not interesting, or + * already read */ free(p); else { unsigned long ul; |