diff options
author | Denis Vlasenko <vda.linux@googlemail.com> | 2007-03-07 22:02:23 +0000 |
---|---|---|
committer | Denis Vlasenko <vda.linux@googlemail.com> | 2007-03-07 22:02:23 +0000 |
commit | ab9eef21a57c23567505e8fbceb8e5ea76306ce1 (patch) | |
tree | 800845b64d0e9a204743656c4d267cc6c9917cde /archival/rpm2cpio.c | |
parent | 8e858e2700651a0e973169b579622cd3dcd0defd (diff) | |
download | busybox-w32-ab9eef21a57c23567505e8fbceb8e5ea76306ce1.tar.gz busybox-w32-ab9eef21a57c23567505e8fbceb8e5ea76306ce1.tar.bz2 busybox-w32-ab9eef21a57c23567505e8fbceb8e5ea76306ce1.zip |
bunzip2/gunzip/uncompress/unlzma: merge into common code -
fix few corner cases, reduce size by 450 bytes. Update testsuite.
Diffstat (limited to 'archival/rpm2cpio.c')
-rw-r--r-- | archival/rpm2cpio.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/archival/rpm2cpio.c b/archival/rpm2cpio.c index 7a2e64b86..307d1a0f6 100644 --- a/archival/rpm2cpio.c +++ b/archival/rpm2cpio.c | |||
@@ -79,7 +79,7 @@ int rpm2cpio_main(int argc, char **argv) | |||
79 | bb_error_msg_and_die("invalid gzip magic"); | 79 | bb_error_msg_and_die("invalid gzip magic"); |
80 | } | 80 | } |
81 | 81 | ||
82 | check_header_gzip(rpm_fd); | 82 | check_header_gzip_or_die(rpm_fd); |
83 | if (inflate_gunzip(rpm_fd, STDOUT_FILENO) < 0) { | 83 | if (inflate_gunzip(rpm_fd, STDOUT_FILENO) < 0) { |
84 | bb_error_msg("error inflating"); | 84 | bb_error_msg("error inflating"); |
85 | } | 85 | } |