pkgsrc/security/aide06/patches/patch-ad
agc ab19a6524c Give a bit of leeway in the atime time calculation - the problem is
that, on a large SMP bulk build machine, and occasionally on smaller
less busy machines, we can get a false-postive message in the aide
output because the atime on a group of files can be one second later
than "cur_time", the current time as returned to aide. So allow for
one second's difference in the time calculation.

Bump package revision.
2004-09-21 14:14:27 +00:00

14 lines
440 B
Text

$NetBSD: patch-ad,v 1.1 2004/09/21 14:14:27 agc Exp $
--- src/gen_list.c 2004/09/21 12:33:36 1.1
+++ src/gen_list.c 2004/09/21 12:34:43
@@ -240,7 +240,8 @@
}
} else {
- if(fs.st_atime>cur_time){
+ /* allow the current time to be 1 second out, in case of ntp twitch or other funny */
+ if(fs.st_atime>cur_time + 1){
error(CLOCK_SKEW,"%s atime in future\n",fil->filename);
}
if(fs.st_mtime>cur_time){