summaryrefslogtreecommitdiff
path: root/archival/dpkg_deb.c
diff options
context:
space:
mode:
authorGlenn L McGrath2002-11-13 00:24:20 +0000
committerGlenn L McGrath2002-11-13 00:24:20 +0000
commite356883ffb0c7300aa0312864ddf203a6d322d94 (patch)
treee5ef4635958a251b3a751437841471ba85c44665 /archival/dpkg_deb.c
parent034c371bb2ea7d66caf3ac29178ce941837edb9f (diff)
downloadbusybox-e356883ffb0c7300aa0312864ddf203a6d322d94.zip
busybox-e356883ffb0c7300aa0312864ddf203a6d322d94.tar.gz
Minor cleanups
Diffstat (limited to 'archival/dpkg_deb.c')
-rw-r--r--archival/dpkg_deb.c17
1 files changed, 0 insertions, 17 deletions
diff --git a/archival/dpkg_deb.c b/archival/dpkg_deb.c
index c467395..7ce637e 100644
--- a/archival/dpkg_deb.c
+++ b/archival/dpkg_deb.c
@@ -29,13 +29,6 @@ extern int dpkg_deb_main(int argc, char **argv)
#ifndef CONFIG_FEATURE_DPKG_DEB_EXTRACT_ONLY
const llist_t *control_tar_llist = NULL;
#endif
-#ifndef CONFIG_AR
- char magic[7];
-#endif
-
- /* a .deb file is an ar archive that contain three files,
- * data.tar.gz, control.tar.gz and debian
- */
/* Setup the tar archive handle */
tar_archive = init_handle();
@@ -104,17 +97,7 @@ extern int dpkg_deb_main(int argc, char **argv)
mkdir(argv[optind], 0777);
chdir(argv[optind]);
-#ifdef CONFIG_AR
unpack_ar_archive(ar_archive);
-#else
- xread_all(ar_archive->src_fd, magic, 7);
- if (strncmp(magic, "!<arch>", 7) != 0) {
- error_msg_and_die("Invalid ar magic");
- }
- ar_archive->offset += 7;
-
- while (get_header_ar(ar_archive) == EXIT_SUCCESS);
-#endif
/* Cleanup */
close (ar_archive->src_fd);