From b4afdd0e2892cbd099352dcfda86230cdca8be02 Mon Sep 17 00:00:00 2001 From: Sergey Poznyakoff Date: Sun, 17 Nov 2013 17:29:53 +0200 Subject: [PATCH] Fix GNU long link header. * src/create.c (write_gnu_long_link): Set timestamp to 0 for backward compatibility. Bug reported by David Barri. * THANKS: Update. --- THANKS | 1 + src/create.c | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/THANKS b/THANKS index 351dcad..a734fb6 100644 --- a/THANKS +++ b/THANKS @@ -119,6 +119,7 @@ Danny R. Johnston danny@cs.weber.edu Dave Barr barr@math.psu.edu Dave Gentzel gentzel@nova.enet.dec.com Dave Gregorich dtg@ipac.caltech.edu +David Barri japgolly@gmail.com David Brown davidb@davidb.org David J. MacKenzie djm@uunet.uu.net David Johnson David.W.Johnson@colorado.edu diff --git a/src/create.c b/src/create.c index e14e13d..4344a24 100644 --- a/src/create.c +++ b/src/create.c @@ -543,7 +543,7 @@ write_gnu_long_link (struct tar_stat_info *st, const char *p, char type) union block *header; char *tmpname; - header = start_private_header ("././@LongLink", size, start_time.tv_sec); + header = start_private_header ("././@LongLink", size, 0); uid_to_uname (0, &tmpname); UNAME_TO_CHARS (tmpname, header->header.uname); free (tmpname); -- 2.45.2