ac8676
diff -up vsftpd-2.0.5/ls.c.fix_qm vsftpd-2.0.5/ls.c
ac8676
--- vsftpd-2.0.5/ls.c.fix_qm	2012-03-02 12:59:01.303249397 +0100
ac8676
+++ vsftpd-2.0.5/ls.c	2012-03-02 13:00:03.792145117 +0100
ac8676
@@ -454,7 +454,8 @@ vsf_filename_passes_filter(const struct
ac8676
         must_match_at_current_pos = 0;
ac8676
       }
ac8676
     } while (locate_result.found &&
ac8676
-             str_getlen(&name_remain_str) > 0 && last_token != '*');
ac8676
+             str_getlen(&name_remain_str) > 0 &&
ac8676
+             last_token != '*' && last_token != '?');
ac8676
   }
ac8676
   /* Any incoming string left means no match unless we ended on the correct
ac8676
    * type of wildcard.