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:
@@ -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)));
|
||||
|
||||
Reference in New Issue
Block a user