Tomáš Chvátal 2015-03-25 08:45:22 +00:00 committed by Git OBS Bridge
parent 915fc9626d
commit 6cd1b030f0

View File

@ -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/<REGEXP> work contrary to currently
+ * needed /home<REGEXP>.
+ */
+ str_copy(filepath, &tmp);
+out:
+ free(normdir);