dpkg: fix symlink creation, closes 10941
authorDenys Vlasenko <vda.linux@googlemail.com>
Fri, 13 Apr 2018 11:26:33 +0000 (13:26 +0200)
committerDenys Vlasenko <vda.linux@googlemail.com>
Fri, 13 Apr 2018 11:27:52 +0000 (13:27 +0200)
function                                             old     new   delta
get_header_ar                                        434     442      +8

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
archival/libarchive/get_header_ar.c

index 93e071c9f128284b6510668620241ffe6efec960..a979706302f0451e6c3236b2d01aa782f891fb4e 100644 (file)
@@ -127,8 +127,10 @@ char FAST_FUNC get_header_ar(archive_handle_t *archive_handle)
                archive_handle->action_header(typed);
 #if ENABLE_DPKG || ENABLE_DPKG_DEB
                if (archive_handle->dpkg__sub_archive) {
-                       while (archive_handle->dpkg__action_data_subarchive(archive_handle->dpkg__sub_archive) == EXIT_SUCCESS)
+                       struct archive_handle_t *sa = archive_handle->dpkg__sub_archive;
+                       while (archive_handle->dpkg__action_data_subarchive(sa) == EXIT_SUCCESS)
                                continue;
+                       create_symlinks_from_list(sa->symlink_placeholders);
                } else
 #endif
                        archive_handle->action_data(archive_handle);