From: Paul Eggert Date: Fri, 13 Sep 2013 18:08:34 +0000 (-0700) Subject: tar: don't warn about zero timestamps X-Git-Url: https://git.brokenzipper.com/gitweb?a=commitdiff_plain;h=28b44aaacb45680aa6640e0a6d7ceab04cfdbf11;p=chaz%2Ftar tar: don't warn about zero timestamps * src/extract.c (check_time): Suppress warniing when t.tv_sec == 0. Problem reported by Denis Excoffier. --- diff --git a/src/extract.c b/src/extract.c index 319aaa8..3d8ba10 100644 --- a/src/extract.c +++ b/src/extract.c @@ -297,7 +297,7 @@ set_mode (char const *file_name, static void check_time (char const *file_name, struct timespec t) { - if (t.tv_sec <= 0) + if (t.tv_sec < 0) WARNOPT (WARN_TIMESTAMP, (0, 0, _("%s: implausibly old time stamp %s"), file_name, tartime (t, true)));