← Commit list

d29c946f9

Denys Vlasenko
Denys Vlasenko
2012-03-06
FAILED Duration: 206s

Subject

fix trivial bug in unpack_gz_stream (wrong fd used in read)

Binary

No binary (build failed)

Architecture & Compiler Flags

Architecture: x86_64-linux-gnu Compiler: gcc (Ubuntu 11.4.0-1ubuntu1~22.04.3) 11.4.0

—

Build Log

(log yok)

Commit Diff GitHub →

archival/libarchive/decompress_gunzip.c+1 -1
@@ -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;