blob: ca81eb258427539f8638f45e8ef721ac0ae450f2 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
$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){
|