From: Joel Rosdahl Date: Sat, 6 Feb 2016 11:45:21 +0000 (+0100) Subject: Use correct hash table in file_stat_matches mode X-Git-Tag: v3.2.5~13 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5459b15a58ed88f20c18562c557ea6febc9e7cf8;p=thirdparty%2Fccache.git Use correct hash table in file_stat_matches mode Bug found by Riley Avron. --- diff --git a/NEWS.txt b/NEWS.txt index 4f4b7aa68..a78457a83 100644 --- a/NEWS.txt +++ b/NEWS.txt @@ -26,6 +26,9 @@ Bug fixes - Don't (try to) update manifest file in ``read-only and ``read-only direct'' modes. +- Fixed a bug in caching of `stat` system calls in ``file_stat_matches + sloppiness mode''. + ccache 3.2.4 ------------ diff --git a/manifest.c b/manifest.c index 54d04bd87..43ee01f8a 100644 --- a/manifest.c +++ b/manifest.c @@ -387,7 +387,7 @@ verify_object(struct conf *conf, struct manifest *mf, struct object *obj, for (i = 0; i < obj->n_file_info_indexes; i++) { struct file_info *fi = &mf->file_infos[obj->file_info_indexes[i]]; char *path = mf->files[fi->index]; - struct file_stats *st = hashtable_search(hashed_files, path); + struct file_stats *st = hashtable_search(stated_files, path); if (!st) { struct stat file_stat; if (x_stat(path, &file_stat) != 0) {