From 6cd1b030f08cce210acb14bda936eba5cdf4a1e2e511459d77bd8addfaa4603e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Chv=C3=A1tal?= Date: Wed, 25 Mar 2015 08:45:22 +0000 Subject: [PATCH] OBS-URL: https://build.opensuse.org/package/show/network/vsftpd?expand=0&rev=78 --- vsftpd-path-normalize.patch | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/vsftpd-path-normalize.patch b/vsftpd-path-normalize.patch index 776b400..20e4ceb 100644 --- a/vsftpd-path-normalize.patch +++ b/vsftpd-path-normalize.patch @@ -28,7 +28,7 @@ Index: vsftpd-3.0.2/str.c /* Ick. Its for die() */ #include "utility.h" #include "sysutil.h" -@@ -781,3 +787,47 @@ str_basename (struct mystr* d_str, const +@@ -781,3 +787,52 @@ str_basename (struct mystr* d_str, const if (str_isempty(d_str)) str_copy (d_str, path); } @@ -68,6 +68,11 @@ Index: vsftpd-3.0.2/str.c + { + str_append_text(&tmp, filename); + } ++ /* TODO: here we should run one more stat to determine if the whole thing ++ * is a directory and append trailing / (ie. /home -> /home/). ++ * This will make the deny_file=/home/ work contrary to currently ++ * needed /home. ++ */ + str_copy(filepath, &tmp); +out: + free(normdir);