Login
[x]
Log in using an account from:
Fedora Account System
Red Hat Associate
Red Hat Customer
Or login using a Red Hat Bugzilla account
Forgot Password
Login:
Hide Forgot
Create an Account
Red Hat Bugzilla – Attachment 157377 Details for
Bug 244864
vsftpd file listing issue with wildcard
[?]
New
Simple Search
Advanced Search
My Links
Browse
Requests
Reports
Current State
Search
Tabular reports
Graphical reports
Duplicates
Other Reports
User Changes
Plotly Reports
Bug Status
Bug Severity
Non-Defaults
|
Product Dashboard
Help
Page Help!
Bug Writing Guidelines
What's new
Browser Support Policy
5.0.4.rh83 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
This site requires JavaScript to be enabled to function correctly, please enable it.
[patch]
patch to perform speculative scan forward on * match
vsftpd-2.0.1-greedy.patch (text/plain), 1.02 KB, created by
Martin Poole
on 2007-06-19 15:11:15 UTC
(
hide
)
Description:
patch to perform speculative scan forward on * match
Filename:
MIME Type:
Creator:
Martin Poole
Created:
2007-06-19 15:11:15 UTC
Size:
1.02 KB
patch
obsolete
>--- vsftpd-2.0.1/ls.c.greedy 2004-07-02 12:23:34.000000000 +0100 >+++ vsftpd-2.0.1/ls.c 2007-06-19 13:25:29.000000000 +0100 >@@ -281,6 +281,24 @@ vsf_filename_passes_filter(const struct > { > goto out; > } >+ if (!must_match_at_current_pos) >+ { >+ struct mystr scan_fwd = INIT_MYSTR; >+ >+ str_mid_to_end(&name_remain_str, &scan_fwd, >+ indexx + str_getlen(&s_match_needed_str)); >+ /* we're allowed to be greedy, test if it match further along >+ * keep advancing indexx while we can still match >+ */ >+ while( (locate_result = str_locate_str(&scan_fwd, &s_match_needed_str)), >+ locate_result.found ) >+ { >+ indexx += locate_result.index + str_getlen(&s_match_needed_str); >+ str_mid_to_end(&scan_fwd, &temp_str, >+ locate_result.index + str_getlen(&s_match_needed_str)); >+ str_copy(&scan_fwd, &temp_str); >+ } >+ } > /* Chop matched string out of remainder */ > str_mid_to_end(&name_remain_str, &temp_str, > indexx + str_getlen(&s_match_needed_str));
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 244864
: 157377