]> git.ipfire.org Git - thirdparty/ccache.git/commitdiff
Use correct hash table in file_stat_matches mode
authorJoel Rosdahl <joel@rosdahl.net>
Sat, 6 Feb 2016 11:45:21 +0000 (12:45 +0100)
committerJoel Rosdahl <joel@rosdahl.net>
Sat, 6 Feb 2016 11:45:21 +0000 (12:45 +0100)
Bug found by Riley Avron.

NEWS.txt
manifest.c

index 4f4b7aa68edbbb4a109cfbc6604edb04815cd04c..a78457a83453956ff4bf87b222c1e10f25f1ba00 100644 (file)
--- 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
 ------------
index 54d04bd87a0b57c5c29f937440fbbeb437ff5e35..43ee01f8a2f2479f213d4ef4651abee4cd130313 100644 (file)
@@ -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) {