Fix file mtime checks

This commit is contained in:
Bruce Hill 2024-03-21 02:43:15 -04:00
parent ebf5626bfa
commit 84f147e6ba

2
tomo.c
View File

@ -170,7 +170,7 @@ static bool stale(const char *filename, const char *relative_to)
if (stat(filename, &target_stat))
return true;
struct stat relative_to_stat;
if (stat(relative_to, &target_stat))
if (stat(relative_to, &relative_to_stat))
return true;
return target_stat.st_mtime < relative_to_stat.st_mtime;
}