aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Fox <pgf@brightstareng.com>2005-07-22 13:17:41 +0000
committerPaul Fox <pgf@brightstareng.com>2005-07-22 13:17:41 +0000
commit37dd6247ddf358dcebafc4f0d5dad5b835dc9b5f (patch)
tree4514e158d0f64e9780ef5a125ee7190c6384d942
parent7b86134032ff26dd1f7b293eb6f601e0b0fec8b4 (diff)
downloadbusybox-37dd6247ddf358dcebafc4f0d5dad5b835dc9b5f.tar.gz
applying fix for:
0000093: Patch for dpkg - can't handle scripts Attached patch is needed to fix dpkg's support for preinst, postinst etc script files.
-rw-r--r--archival/dpkg.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/archival/dpkg.c b/archival/dpkg.c
index 05ba43414..89446574e 100644
--- a/archival/dpkg.c
+++ b/archival/dpkg.c
@@ -1520,6 +1520,7 @@ static char *deb_extract_control_file_to_buffer(archive_handle_t *ar_handle, lli
{
ar_handle->sub_archive->action_data = data_extract_to_buffer;
ar_handle->sub_archive->accept = myaccept;
+ ar_handle->sub_archive->filter = filter_accept_list;
unpack_ar_archive(ar_handle);
close(ar_handle->src_fd);
@@ -1714,6 +1715,7 @@ int dpkg_main(int argc, char **argv)
if (package_num == -1) {
bb_error_msg("Invalid control file in %s", argv[optind]);
+ optind++;
continue;
}
deb_file[deb_count]->package = (unsigned int) package_num;