summaryrefslogtreecommitdiff
path: root/archival/libarchive/decompress_gunzip.c
diff options
context:
space:
mode:
authorDenys Vlasenko2012-03-06 16:46:25 +0100
committerDenys Vlasenko2012-03-06 16:46:25 +0100
commitd29c946f931730a9acf0132da5f3d73fed0113df (patch)
tree9594f3d071327649748073a58a0ceee36f9ac312 /archival/libarchive/decompress_gunzip.c
parentb5d6ae9a336ae64958fbc49a7a98d66f2e4cbcd6 (diff)
downloadbusybox-d29c946f931730a9acf0132da5f3d73fed0113df.zip
busybox-d29c946f931730a9acf0132da5f3d73fed0113df.tar.gz
fix trivial bug in unpack_gz_stream (wrong fd used in read)
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'archival/libarchive/decompress_gunzip.c')
-rw-r--r--archival/libarchive/decompress_gunzip.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/archival/libarchive/decompress_gunzip.c b/archival/libarchive/decompress_gunzip.c
index 66152a8..2d5ab3e 100644
--- a/archival/libarchive/decompress_gunzip.c
+++ b/archival/libarchive/decompress_gunzip.c
@@ -1195,7 +1195,7 @@ unpack_gz_stream(transformer_aux_data_t *aux, int src_fd, int dst_fd)
if (aux && aux->check_signature) {
uint16_t magic2;
- if (full_read(STDIN_FILENO, &magic2, 2) != 2) {
+ if (full_read(src_fd, &magic2, 2) != 2) {
bad_magic:
bb_error_msg("invalid magic");
return -1;