tar: don't warn about zero timestamps

* src/extract.c (check_time): Suppress warniing when t.tv_sec == 0.
Problem reported by Denis Excoffier.
This commit is contained in:
Paul Eggert
2013-09-13 11:08:34 -07:00
parent 88cb5008a6
commit 28b44aaacb

View File

@@ -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)));