Red Hat Bugzilla – Bug 392181
vsftpd file listing issue with wildcard
Last modified: 2018-10-19 18:30:41 EDT
+++ This bug was initially created as a clone of Bug #391821 +++ +++ This bug was initially created as a clone of Bug #244864 +++ Description of problem: The wildcarding code misses trivially valid cases ls *1 will match A1 b9087654321 but will fail against a11 Version-Release number of selected component (if applicable): vsftpd-2.0.1-5.EL4.5 How reproducible: always Steps to Reproduce: 1. create files on server A1 A21 A11 2. ftp in and ls *1 3. Actual results: ftp> ls *1 227 Entering Passive Mode (10,1,2,3,61,93) 150 Here comes the directory listing. -rw-rw-r-- 1 500 500 0 Jun 11 00:30 A1 -rw-r--r-- 1 0 0 0 Jun 12 01:55 A21 Expected results: ftp> ls 227 Entering Passive Mode (10,1,2,3,227,184) 150 Here comes the directory listing. -rw-rw-r-- 1 500 500 0 Jun 11 00:30 A1 -rw-rw-r-- 1 500 500 0 Jun 11 00:35 A11 -rw-r--r-- 1 0 0 0 Jun 12 01:55 A21 Additional info: The problem is due to the fact the match code is not greedy enough. Having found a match it needs to speculatively scan for further matches without a permanent failure.
[root@ibm-x3200m2-01 regressions]# rpmquery vsftpd vsftpd-2.0.5-10.el5
This request was evaluated by Red Hat Product Management for inclusion, but this component is not scheduled to be updated in the current Red Hat Enterprise Linux release. This request will be reviewed for a future Red Hat Enterprise Linux release.
Fixed in fedora/rawhide (vsftpd-2.0.5-21.fc9).
Re-proposing for 5.2 since vsftpd was approved for 5.2.
This request was evaluated by Red Hat Product Management for inclusion in a Red Hat Enterprise Linux maintenance release. Product Management has requested further review of this request by Red Hat Engineering, for potential inclusion in a Red Hat Enterprise Linux Update release for currently deployed products. This request is not yet committed for inclusion in an Update release.
Created attachment 285581 [details] Patch to make more vsftpd wildcard matching more greedy This patch was originally written by Martin Poole.
This issue will be fixed in vsftpd-2.0.5-10.el5
Correction: This will be fixed in vsftpd-2.0.5-11.el5
An advisory has been issued which should help the problem described in this bug report. This report is therefore being closed with a resolution of ERRATA. For more information on the solution and/or where to find the updated files, please follow the link below. You may reopen this bug report if the solution does not work for you. http://rhn.redhat.com/errata/RHSA-2008-0295.html