summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorbz <bz@FreeBSD.org>2011-04-12 02:07:23 +0000
committerbz <bz@FreeBSD.org>2011-04-12 02:07:23 +0000
commitd47989ee77f9ae6b44a246efd8cd9bbe02a9bb25 (patch)
treead4d4684b725a8b4091858dbed61ef24a802e505 /Makefile
parent46d58dc4a088e75192f36498dd73a5820b7ac294 (diff)
downloadFreeBSD-src-d47989ee77f9ae6b44a246efd8cd9bbe02a9bb25.zip
FreeBSD-src-d47989ee77f9ae6b44a246efd8cd9bbe02a9bb25.tar.gz
If building (custom) FreeBSD images people tend to patch param.h. In case
this happens just before the build is started (within the same second) CHECK_TIME actually triggers thinking param.h is in the future (see f_Xtime, c_Xtime logi in find(1) sources for the details in !F_EXACTTIME case). Using the -mtime -0s (seconds, rather than no unit) avoids this 1s race. Submitted by: ed (2009-05-03) Reviewed by: cperciva (2009-05-03), emaste Tested by: bz (for almost two years) MFC after: 4 days
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 97ca9d3..272bae0 100644
--- a/Makefile
+++ b/Makefile
@@ -214,7 +214,7 @@ ${TGTS}:
.MAIN: all
STARTTIME!= LC_ALL=C date
-CHECK_TIME!= find ${.CURDIR}/sys/sys/param.h -mtime -0
+CHECK_TIME!= find ${.CURDIR}/sys/sys/param.h -mtime -0s
.if !empty(CHECK_TIME)
.error check your date/time: ${STARTTIME}
.endif
OpenPOWER on IntegriCloud