[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Bug-wget] Wget1.19.3 seem to have the bug in decompress
From: |
Darshit Shah |
Subject: |
Re: [Bug-wget] Wget1.19.3 seem to have the bug in decompress |
Date: |
Sat, 20 Jan 2018 14:05:22 +0100 |
User-agent: |
NeoMutt/20171215 |
Hi,
Thanks for reporting the bug. It indeed seems like an issue there. We really
need tests for this feature.
In any case, here is a slightly amended patch that I intend to push by this
evening if nobody complains.
* G-Ey3dr <address@hidden> [180120 06:49]:
> Hello all,
>
> Wget1.19.3 seem to have the bug in decompress. See below.
>
> diff -aur wget-1.19.3_old/src/http.c wget-1.19.3_new/src/http.c
> --- wget-1.19.3_old/src/http.c 2018-01-14 19:22:42.000000000 +0900
> +++ wget-1.19.3_new/src/http.c 2018-01-20 11:46:15.897109600 +0900
> @@ -3744,7 +3744,7 @@
> /* don't uncompress if a file ends with '.gz' or '.tgz' */
> if (hs->remote_encoding == ENC_GZIP
> && (p = strrchr(u->file, '.'))
> - && (c_strcasecmp(p, ".gz") || c_strcasecmp(p, ".tgz")))
> + && (!c_strcasecmp(p, ".gz") || !c_strcasecmp(p, ".tgz")))
> {
> hs->remote_encoding = ENC_NONE;
> }
>
> Best regards,
> Reiji
--
Thanking You,
Darshit Shah
PGP Fingerprint: 7845 120B 07CB D8D6 ECE5 FF2B 2A17 43ED A91A 35B6
0001-src-http.c-gethttp-Fix-bug-that-prevented-all-files-.patch
Description: Text document
signature.asc
Description: PGP signature