[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug-wget] Wget1.19.3 seem to have the bug in decompress
From: |
G-Ey3dr |
Subject: |
[Bug-wget] Wget1.19.3 seem to have the bug in decompress |
Date: |
Sat, 20 Jan 2018 14:15:23 +0900 |
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
- [Bug-wget] Wget1.19.3 seem to have the bug in decompress,
G-Ey3dr <=