Blame SOURCES/vsftpd-2.2.0-wildchar.patch

ac8676
diff -up vsftpd-2.3.2/ls.c.tmp vsftpd-2.3.2/ls.c
ac8676
--- vsftpd-2.3.2/ls.c.tmp	2010-08-20 13:18:54.397583558 +0200
ac8676
+++ vsftpd-2.3.2/ls.c	2010-08-20 13:14:59.047831385 +0200
ac8676
@@ -305,6 +305,20 @@ vsf_filename_passes_filter(const struct 
ac8676
       {
ac8676
         goto out;
ac8676
       }
ac8676
+      if (!must_match_at_current_pos && last_token == 0)
ac8676
+      {
ac8676
+        struct mystr last_str = INIT_MYSTR;
ac8676
+        str_mid_to_end(&name_remain_str, &last_str,
ac8676
+          str_getlen(&name_remain_str) - str_getlen(&s_match_needed_str));
ac8676
+        locate_result = str_locate_str(&last_str, &s_match_needed_str);
ac8676
+        str_free(&last_str);
ac8676
+
ac8676
+        if (locate_result.found)
ac8676
+        {
ac8676
+          ret = 1;
ac8676
+        }
ac8676
+        goto out;
ac8676
+      }
ac8676
       /* Chop matched string out of remainder */
ac8676
       str_mid_to_end(&name_remain_str, &temp_str,
ac8676
                      indexx + str_getlen(&s_match_needed_str));