]> granicus.if.org Git - sudo/commitdiff
Allow for some clock drift due to ntpd, etc.
authorTodd C. Miller <Todd.Miller@sudo.ws>
Fri, 31 Aug 2018 15:22:59 +0000 (09:22 -0600)
committerTodd C. Miller <Todd.Miller@sudo.ws>
Fri, 31 Aug 2018 15:22:59 +0000 (09:22 -0600)
plugins/sudoers/regress/iolog_plugin/check_iolog_plugin.c

index c909cbd16d9827156ebabd8989560a56e13c641c..12ca171215b5c0093faea30e4352cdc798c9985b 100644 (file)
@@ -131,7 +131,7 @@ validate_iolog_info(const char *logfile)
        return false;
     }
 
-    if (info->tstamp < now || info->tstamp > now + 30) {
+    if (info->tstamp < now - 10 || info->tstamp > now + 10) {
        sudo_warnx("bad tstamp: want %lld got %lld", (long long)now,
            (long long)info->tstamp);
        return false;