fixup! fscache: remember not-found directories

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
This commit is contained in:
Johannes Schindelin
2019-12-26 20:32:18 +01:00
parent 7718c587c0
commit 69fc26c3a1

View File

@@ -420,7 +420,8 @@ static struct fsentry *fscache_get(struct fscache *cache, struct fsentry *key)
* thing as far as fscache is concerned).
*/
fse = fsentry_alloc(cache, key->list->list,
key->list->name, key->list->len);
key->list->dirent.d_name,
key->list->len);
fse->st_mode = 0;
hashmap_add(&cache->map, &fse->ent);
}