From 4ca5a5bc2991438602d3b1fdb56b91d2b425c52d Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Fri, 17 Jul 2020 17:17:55 +0200 Subject: Fix race in path/mtime assignment and file_rule::match() --- libbuild2/rule.cxx | 3 +++ 1 file changed, 3 insertions(+) (limited to 'libbuild2/rule.cxx') diff --git a/libbuild2/rule.cxx b/libbuild2/rule.cxx index 4b2d69d..ac5b310 100644 --- a/libbuild2/rule.cxx +++ b/libbuild2/rule.cxx @@ -71,6 +71,9 @@ namespace build2 // me, this file exists" situations (used, for example, for installed // stuff where we know it's there, just not exactly where). // + // See also path_target::path_mtime() for a potential race in this + // logic. + // mtime_target& mt (t.as ()); timestamp ts (mt.mtime ()); -- cgit v1.1