From: Todd C. Miller Date: Fri, 31 Aug 2018 15:22:59 +0000 (-0600) Subject: Allow for some clock drift due to ntpd, etc. X-Git-Tag: SUDO_1_8_25^2~1 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=27e549a3ef0ee01ba88ab89408bde817bd64a0ea;p=sudo Allow for some clock drift due to ntpd, etc. --- diff --git a/plugins/sudoers/regress/iolog_plugin/check_iolog_plugin.c b/plugins/sudoers/regress/iolog_plugin/check_iolog_plugin.c index c909cbd16..12ca17121 100644 --- a/plugins/sudoers/regress/iolog_plugin/check_iolog_plugin.c +++ b/plugins/sudoers/regress/iolog_plugin/check_iolog_plugin.c @@ -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;