Wildcard "?" does not work correctly in vsftpd
Issue
- The wildcard "?" does not work correctly after updating vsftpd-2.0.5-24.el5.
-
The wildcard functions properly as follows before updating:
ftp> ls -rw-rw-r-- 1 500 500 24 Mar 02 04:01 aaa.txt -rw-rw-r-- 1 500 500 0 Mar 02 03:59 bbb.txt -rw-rw-r-- 1 500 500 0 Mar 02 03:59 ccc.txt : ftp> ls aaa.tx? -rw-rw-r-- 1 500 500 24 Mar 02 04:01 aaa.txt : ftp> ls aaa.t?t -rw-rw-r-- 1 500 500 24 Mar 02 04:01 aaa.txt : ftp> ls aaa.?xt -rw-rw-r-- 1 500 500 24 Mar 02 04:01 aaa.txt :
After updating, when we use the wildcard "?" at the end of words, it works correctly. However, if "?" is put at other than the end, it doesn't work as expected.
ftp> ls aaa.tx? -rw-rw-r-- 1 500 500 24 Mar 02 04:01 aaa.txt : ftp> ls aaa.t?t 227 Entering Passive Mode (127,0,0,1,232,236) 150 Here comes the directory listing. 226 Directory send OK. ftp> ls aaa.?xt 227 Entering Passive Mode (127,0,0,1,89,155) 150 Here comes the directory listing. 226 Directory send OK.
Environment
- Red Hat Enterprise Linux 5
- vsftpd-2.0.5-24.el5
- Red Hat Enterprise Linux 7
- vsftpd-3.0.2-9.el7
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.