From: Joel Rosdahl Date: Sun, 25 Apr 2010 12:04:58 +0000 (+0200) Subject: Don't check ctime when determining if an include file is too new X-Git-Tag: v3.0pre1~67 X-Git-Url: http://git.ipfire.org/gitweb/gitweb.cgi?a=commitdiff_plain;h=702db98740f0a76998a03f6d7c043e7d5f94c8ae;p=thirdparty%2Fccache.git Don't check ctime when determining if an include file is too new If you backdate the include file's mtime, you have to take the consequences... --- diff --git a/ccache.c b/ccache.c index 375302776..c8b379d77 100644 --- a/ccache.c +++ b/ccache.c @@ -331,8 +331,7 @@ static void remember_include_file(char *path, size_t path_len) /* Ignore directory, typically $PWD. */ goto ignore; } - if (st.st_mtime >= time_of_compilation - || st.st_ctime >= time_of_compilation) { + if (st.st_mtime >= time_of_compilation) { cc_log("Include file %s too new", path); goto failure; }