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.
This commit is contained in:
Sergey Poznyakoff
2013-11-17 17:29:53 +02:00
parent 6e8bca8b56
commit b4afdd0e28
2 changed files with 2 additions and 1 deletions

1
THANKS
View File

@@ -119,6 +119,7 @@ Danny R. Johnston danny@cs.weber.edu
Dave Barr barr@math.psu.edu Dave Barr barr@math.psu.edu
Dave Gentzel gentzel@nova.enet.dec.com Dave Gentzel gentzel@nova.enet.dec.com
Dave Gregorich dtg@ipac.caltech.edu Dave Gregorich dtg@ipac.caltech.edu
David Barri japgolly@gmail.com
David Brown davidb@davidb.org David Brown davidb@davidb.org
David J. MacKenzie djm@uunet.uu.net David J. MacKenzie djm@uunet.uu.net
David Johnson David.W.Johnson@colorado.edu David Johnson David.W.Johnson@colorado.edu

View File

@@ -543,7 +543,7 @@ write_gnu_long_link (struct tar_stat_info *st, const char *p, char type)
union block *header; union block *header;
char *tmpname; char *tmpname;
header = start_private_header ("././@LongLink", size, start_time.tv_sec); header = start_private_header ("././@LongLink", size, 0);
uid_to_uname (0, &tmpname); uid_to_uname (0, &tmpname);
UNAME_TO_CHARS (tmpname, header->header.uname); UNAME_TO_CHARS (tmpname, header->header.uname);
free (tmpname); free (tmpname);