From: Bykov Aleksey Date: Sat, 26 Oct 2013 10:50:37 +0000 (+0300) Subject: Fix FTP list parsing & Fix cookies reject X-Git-Tag: v1.15~13 X-Git-Url: http://sjero.net/git/?p=wget;a=commitdiff_plain;h=8b2954e58a5599817ac9a5e02c144e95712f6927 Fix FTP list parsing & Fix cookies reject --- diff --git a/src/ChangeLog b/src/ChangeLog index 13b6f644..cdeb55e1 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,4 +1,7 @@ 2013-10-26 Bykov Aleksey + + * utils.c (match_tail): Fix cookies reject + * ftp-ls.c (ftp_parse_unix_ls): Fix parsing month name in uppercase 2013-09-09 Tim Ruehsen diff --git a/src/utils.c b/src/utils.c index 2ec96018..4354668c 100644 --- a/src/utils.c +++ b/src/utils.c @@ -1024,9 +1024,9 @@ match_tail (const char *string, const char *tail, bool fold_case) return false; /* tail is longer than string. */ if (!fold_case) - return strcmp (string + pos, tail); + return !strcmp (string + pos, tail); else - return strcasecmp (string + pos, tail); + return !strcasecmp (string + pos, tail); } /* Checks whether string S matches each element of ACCEPTS. A list