]> Dogcows Code - chaz/tar/commitdiff
tar: use birthtime rather than ctime when checking identity
authorPaul Eggert <eggert@cs.ucla.edu>
Tue, 7 Jun 2011 22:16:55 +0000 (15:16 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Tue, 7 Jun 2011 22:18:01 +0000 (15:18 -0700)
Without this fix, tar would sometimes mishandle the extraction of
hard links to symbolic links.  Problem reported in
<http://lists.gnu.org/archive/html/bug-tar/2011-06/msg00000.html>
by Andreas Stolcke.
* src/extract.c (struct delayed_link): Change ctime member to birthtime.
(same_birthtime): New function.
(create_placeholder_file, extract_link, apply_delayed_links):
Use it to compare birthtimes (when available) instead of ctime.


No differences found
This page took 0.020845 seconds and 4 git commands to generate.