diff options
author | kientzle <kientzle@FreeBSD.org> | 2008-09-05 06:15:25 +0000 |
---|---|---|
committer | kientzle <kientzle@FreeBSD.org> | 2008-09-05 06:15:25 +0000 |
commit | ae483162bf199d6e6f04f929bc062f67178095d5 (patch) | |
tree | 0bdcf742c020a1f7626f434c3ccd61b31e0abda1 /lib | |
parent | 5290cd20ad8870351f499170163f9f1d27cf4c4a (diff) | |
download | FreeBSD-src-ae483162bf199d6e6f04f929bc062f67178095d5.zip FreeBSD-src-ae483162bf199d6e6f04f929bc062f67178095d5.tar.gz |
The link resolver now unsets the size to mark a hardlink
with no body instead of setting it to zero.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/libarchive/archive_entry_link_resolver.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/libarchive/archive_entry_link_resolver.c b/lib/libarchive/archive_entry_link_resolver.c index 25b98a8..e7758d6 100644 --- a/lib/libarchive/archive_entry_link_resolver.c +++ b/lib/libarchive/archive_entry_link_resolver.c @@ -189,7 +189,7 @@ archive_entry_linkify(struct archive_entry_linkresolver *res, case ARCHIVE_ENTRY_LINKIFY_LIKE_TAR: le = find_entry(res, *e); if (le != NULL) { - archive_entry_set_size(*e, 0); + archive_entry_unset_size(*e); archive_entry_copy_hardlink(*e, archive_entry_pathname(le->canonical)); } else @@ -217,7 +217,7 @@ archive_entry_linkify(struct archive_entry_linkresolver *res, *e = le->entry; le->entry = t; /* Make the old entry into a hardlink. */ - archive_entry_set_size(*e, 0); + archive_entry_unset_size(*e); archive_entry_copy_hardlink(*e, archive_entry_pathname(le->canonical)); /* If we ran out of links, return the |