]> sjero.net Git - wget/commitdiff
Fix FTP list parsing
authorBykov Aleksey <gnfalex@rambler.ru>
Sat, 26 Oct 2013 10:46:17 +0000 (13:46 +0300)
committerGiuseppe Scrivano <gscrivan@redhat.com>
Sun, 27 Oct 2013 23:20:18 +0000 (00:20 +0100)
src/ChangeLog
src/ftp-ls.c

index 23c210b0ccecc35752f0a3e27b790a6e40bf4e71..13b6f6445292a97599a8310c0672320cd3260e5a 100644 (file)
@@ -1,3 +1,6 @@
+2013-10-26  Bykov Aleksey <gnfalex@rambler.ru>
+       * ftp-ls.c (ftp_parse_unix_ls): Fix parsing month name in uppercase
+
 2013-09-09  Tim Ruehsen  <tim.ruehsen@gmx.de>
 
        * gnutls.c (ssl_connect_wget): changed checking of option "PFS"
 2013-09-09  Tim Ruehsen  <tim.ruehsen@gmx.de>
 
        * gnutls.c (ssl_connect_wget): changed checking of option "PFS"
index 28e32c4a44c9d6efce555a25a1c442bed553f6a1..1039a43d88d144642ab94cd455fcbd1c48dc8293 100644 (file)
@@ -199,7 +199,7 @@ ftp_parse_unix_ls (const char *file, int ignore_perms)
           if (next < 0)         /* a month name was not encountered */
             {
               for (i = 0; i < 12; i++)
           if (next < 0)         /* a month name was not encountered */
             {
               for (i = 0; i < 12; i++)
-                if (!strcmp (tok, months[i]))
+                if (!strcasecmp (tok, months[i]))
                   break;
               /* If we got a month, it means the token before it is the
                  size, and the filename is three tokens away.  */
                   break;
               /* If we got a month, it means the token before it is the
                  size, and the filename is three tokens away.  */