From 8b2954e58a5599817ac9a5e02c144e95712f6927 Mon Sep 17 00:00:00 2001 From: Bykov Aleksey Date: Sat, 26 Oct 2013 13:50:37 +0300 Subject: [PATCH] Fix FTP list parsing & Fix cookies reject --- src/ChangeLog | 3 +++ src/utils.c | 4 ++-- 2 files changed, 5 insertions(+), 2 deletions(-) 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 -- 2.39.2