]> sjero.net Git - wget/commitdiff
Fix FTP list parsing & Fix cookies reject
authorBykov Aleksey <gnfalex@rambler.ru>
Sat, 26 Oct 2013 10:50:37 +0000 (13:50 +0300)
committerGiuseppe Scrivano <gscrivan@redhat.com>
Sun, 27 Oct 2013 23:26:58 +0000 (00:26 +0100)
src/ChangeLog
src/utils.c

index 13b6f6445292a97599a8310c0672320cd3260e5a..cdeb55e15bf3560a381039293ff0d8c8f8c6ae95 100644 (file)
@@ -1,4 +1,7 @@
 2013-10-26  Bykov Aleksey <gnfalex@rambler.ru>
 2013-10-26  Bykov Aleksey <gnfalex@rambler.ru>
+
+       * 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  <tim.ruehsen@gmx.de>
        * ftp-ls.c (ftp_parse_unix_ls): Fix parsing month name in uppercase
 
 2013-09-09  Tim Ruehsen  <tim.ruehsen@gmx.de>
index 2ec960183f4be3060ae2d8439ad0cfe73c170792..4354668c187e3f522b507846b2d5330dd2b169d4 100644 (file)
@@ -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 false;  /* tail is longer than string.  */
 
   if (!fold_case)
-    return strcmp (string + pos, tail);
+    return !strcmp (string + pos, tail);
   else
   else
-    return strcasecmp (string + pos, tail);
+    return !strcasecmp (string + pos, tail);
 }
 
 /* Checks whether string S matches each element of ACCEPTS.  A list
 }
 
 /* Checks whether string S matches each element of ACCEPTS.  A list