From 84f147e6ba4a00acff868613f19573406723a3cf Mon Sep 17 00:00:00 2001 From: Bruce Hill Date: Thu, 21 Mar 2024 02:43:15 -0400 Subject: Fix file mtime checks --- tomo.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tomo.c b/tomo.c index 1dffafeb..1031fc0e 100644 --- a/tomo.c +++ b/tomo.c @@ -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; } -- cgit v1.2.3