nixpkgs/pkgs/tools/archivers/gnutar/implausible.patch
Eelco Dolstra fe25567984 * Patch to make tar shut up about timestamps of 0 (1-1-1970 00:00:00
UTC).  (NIXPKGS-46)

svn path=/nixpkgs/trunk/; revision=8743
2007-05-24 13:35:44 +00:00

20 lines
753 B
Diff

diff -rc tar-1.16.1-orig/src/extract.c tar-1.16.1/src/extract.c
*** tar-1.16.1-orig/src/extract.c 2006-12-07 14:26:00.000000000 +0100
--- tar-1.16.1/src/extract.c 2007-05-24 11:39:47.000000000 +0200
***************
*** 194,200 ****
static void
check_time (char const *file_name, struct timespec t)
{
! if (t.tv_sec <= 0)
WARN ((0, 0, _("%s: implausibly old time stamp %s"),
file_name, tartime (t, true)));
else if (timespec_cmp (volume_start_time, t) < 0)
--- 194,200 ----
static void
check_time (char const *file_name, struct timespec t)
{
! if (0 /* t.tv_sec <= 0 */)
WARN ((0, 0, _("%s: implausibly old time stamp %s"),
file_name, tartime (t, true)));
else if (timespec_cmp (volume_start_time, t) < 0)