mirror of
https://github.com/thead-yocto-mirror/meta-openembedded
synced 2026-08-16 01:38:14 +02:00
Hello Eric, On 20.02.2012 14:51, Eric Bénard wrote: > - imported 2.0.5 from oe-classic > - upgrade to 2.3.5 which is latest stable > - tested on ARMv5 with Angstrom I created a recipe for vsftpd, too. Here's my version for your reference. All patches were taken from the Debian or Ubuntu package. It differs from your recipe in these ways: - uses openssl - uses pam if available - uses xinetd - allows to set custom default configuration options in bbappends - only build-tested with OE-core, no runtime tests so far. Regards, Andreas Signed-off-by: Koen Kooi <koen@dominion.thruhere.net>
33 lines
1.3 KiB
Diff
33 lines
1.3 KiB
Diff
Author: Martin Nagy <mnagy@redhat.com>
|
|
Description: Fix file listing issue with wildcard (Bugzilla: #392181).
|
|
|
|
diff -Naurp vsftpd.orig/ls.c vsftpd/ls.c
|
|
--- vsftpd.orig/ls.c 2009-10-02 14:15:18.000000000 +0200
|
|
+++ vsftpd/ls.c 2009-10-18 11:48:29.000000000 +0200
|
|
@@ -281,6 +281,25 @@ 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);
|
|
+ }
|
|
+ str_free(&scan_fwd);
|
|
+ }
|
|
/* Chop matched string out of remainder */
|
|
str_mid_to_end(&name_remain_str, &temp_str,
|
|
indexx + str_getlen(&s_match_needed_str));
|