Blame SOURCES/vsftpd-2.2.0-wildchar.patch

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