Explorar o código

tar: don't warn about zero timestamps

* src/extract.c (check_time): Suppress warniing when t.tv_sec == 0.
Problem reported by Denis Excoffier.
Paul Eggert %!s(int64=11) %!d(string=hai) anos
pai
achega
28b44aaacb
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      src/extract.c

+ 1 - 1
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)));