]> Dogcows Code - chaz/tar/commit
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)
commit189e4364741e927216a254b8a51d96af2d954df8
tree8791d7a0d46daf901c53fa40d7ec1393bd7181af
parent9708b248e8e0139e43be400086e9dfd7b145aeda
tar: use birthtime rather than ctime when checking identity

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.
src/extract.c
This page took 0.022317 seconds and 4 git commands to generate.