From 28b44aaacb45680aa6640e0a6d7ceab04cfdbf11 Mon Sep 17 00:00:00 2001 From: Paul Eggert Date: Fri, 13 Sep 2013 11:08:34 -0700 Subject: [PATCH] tar: don't warn about zero timestamps * src/extract.c (check_time): Suppress warniing when t.tv_sec == 0. Problem reported by Denis Excoffier. --- src/extract.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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))); -- 2.45.2