SHA256
1
0
forked from pool/vsftpd

- bnc#925963 stat is sometimes run on wrong path and results with

ENOENT:
  * vsftpd-path-normalize.patch

OBS-URL: https://build.opensuse.org/package/show/network/vsftpd?expand=0&rev=80
This commit is contained in:
Tomáš Chvátal 2015-04-05 10:34:03 +00:00 committed by Git OBS Bridge
parent ef6c0131cb
commit abd20973e8
2 changed files with 14 additions and 8 deletions

View File

@ -2,15 +2,14 @@ Index: vsftpd-3.0.2/ls.c
===================================================================
--- vsftpd-3.0.2.orig/ls.c
+++ vsftpd-3.0.2/ls.c
@@ -270,6 +270,8 @@ vsf_filename_passes_filter(const struct
}
} else
str_copy(&name_remain_str, p_filename_str);
+
+ str_normalize_filepath(&name_remain_str);
@@ -249,6 +249,7 @@ vsf_filename_passes_filter(const struct
int matched = 0;
while (!str_isempty(&filter_remain_str) && *iters < VSFTP_MATCHITERS_MAX)
{
str_copy(&filter_remain_str, p_filter_str);
+ str_normalize_filepath(p_filter_str);
if (!str_isempty (&filter_remain_str) && !str_isempty(p_filename_str)) {
if (str_get_char_at(p_filter_str, 0) == '/') {
Index: vsftpd-3.0.2/str.c
===================================================================
--- vsftpd-3.0.2.orig/str.c

View File

@ -1,3 +1,10 @@
-------------------------------------------------------------------
Sun Apr 5 10:25:50 UTC 2015 - tchvatal@suse.com
- bnc#925963 stat is sometimes run on wrong path and results with
ENOENT:
* vsftpd-path-normalize.patch
-------------------------------------------------------------------
Wed Mar 25 10:08:03 UTC 2015 - tchvatal@suse.com