diff options
Diffstat (limited to 'archival/dpkg_deb.c')
-rw-r--r-- | archival/dpkg_deb.c | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/archival/dpkg_deb.c b/archival/dpkg_deb.c index 48a1ac161..ce65e219a 100644 --- a/archival/dpkg_deb.c +++ b/archival/dpkg_deb.c | |||
@@ -4,13 +4,8 @@ | |||
4 | * | 4 | * |
5 | * Licensed under GPLv2 or later, see file LICENSE in this tarball for details. | 5 | * Licensed under GPLv2 or later, see file LICENSE in this tarball for details. |
6 | */ | 6 | */ |
7 | #include <fcntl.h> | ||
8 | #include <stdlib.h> | ||
9 | #include <string.h> | ||
10 | #include <unistd.h> | ||
11 | |||
12 | #include "unarchive.h" | ||
13 | #include "busybox.h" | 7 | #include "busybox.h" |
8 | #include "unarchive.h" | ||
14 | 9 | ||
15 | #define DPKG_DEB_OPT_CONTENTS 1 | 10 | #define DPKG_DEB_OPT_CONTENTS 1 |
16 | #define DPKG_DEB_OPT_CONTROL 2 | 11 | #define DPKG_DEB_OPT_CONTROL 2 |
@@ -81,7 +76,7 @@ int dpkg_deb_main(int argc, char **argv) | |||
81 | bb_show_usage(); | 76 | bb_show_usage(); |
82 | } | 77 | } |
83 | 78 | ||
84 | tar_archive->src_fd = ar_archive->src_fd = bb_xopen(argv[optind++], O_RDONLY); | 79 | tar_archive->src_fd = ar_archive->src_fd = xopen(argv[optind++], O_RDONLY); |
85 | 80 | ||
86 | /* Workout where to extract the files */ | 81 | /* Workout where to extract the files */ |
87 | /* 2nd argument is a dir name */ | 82 | /* 2nd argument is a dir name */ |
@@ -90,7 +85,7 @@ int dpkg_deb_main(int argc, char **argv) | |||
90 | } | 85 | } |
91 | if (extract_dir) { | 86 | if (extract_dir) { |
92 | mkdir(extract_dir, 0777); /* bb_make_directory(extract_dir, 0777, 0) */ | 87 | mkdir(extract_dir, 0777); /* bb_make_directory(extract_dir, 0777, 0) */ |
93 | bb_xchdir(extract_dir); | 88 | xchdir(extract_dir); |
94 | } | 89 | } |
95 | unpack_ar_archive(ar_archive); | 90 | unpack_ar_archive(ar_archive); |
96 | 91 | ||