Libarchive recognizes hardlinked files on ISO images,

but returned them incorrectly, causing tar to actually
erase the resulting file while trying to restore the
link.  This one-line fix corrects the hardlink descriptions
to avoid this problem.

Thanks to Jung-uk Kim for pointing this out.

Approved by:	re (kib)
This commit is contained in:
Tim Kientzle 2009-07-25 18:11:55 +00:00
parent e19ef875b1
commit e2f1f1fb00

View File

@ -579,6 +579,7 @@ archive_read_format_iso9660_read_header(struct archive_read *a,
&& file->size > 0) {
archive_entry_set_hardlink(entry,
iso9660->previous_pathname.s);
archive_entry_unset_size(entry);
iso9660->entry_bytes_remaining = 0;
iso9660->entry_sparse_offset = 0;
release_file(iso9660, file);