ignore time of check to of use defect

This is intentional and only an issue if multiple work generators are creating input files that have the same name but different content.
Ignores CID 27922, 27993 found by Coverity
This commit is contained in:
Christian Beer 2015-10-22 14:44:23 +02:00
parent 7c8be3f478
commit d160bb371b
1 changed files with 2 additions and 0 deletions

View File

@ -57,6 +57,7 @@ static bool got_md5_info(
// get mod time for md5 cache file
//
// coverity[toctou]
if (stat(md5name, &md5stat)) {
return false;
}
@ -107,6 +108,7 @@ static void write_md5_info(
// if file already exists with this name, don't touch it.
//
// coverity[toctou]
sprintf(md5name, "%s.md5", path);
if (!stat(md5name, &statbuf)) {
return;