]> Dogcows Code - chaz/tar/commitdiff
tar: don't warn about zero timestamps
authorPaul Eggert <eggert@cs.ucla.edu>
Fri, 13 Sep 2013 18:08:34 +0000 (11:08 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Fri, 13 Sep 2013 18:10:39 +0000 (11:10 -0700)
* src/extract.c (check_time): Suppress warniing when t.tv_sec == 0.
Problem reported by Denis Excoffier.

src/extract.c

index 319aaa86b29cdf2dd71830901e36305dda478315..3d8ba10dbf539f50e3407eb0b56e8dd47213b997 100644 (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)));
This page took 0.026247 seconds and 4 git commands to generate.