2022-02-01 20:19:28 +01:00
|
|
|
Index: vsftpd-3.0.5/postlogin.c
|
2012-04-11 14:03:42 +02:00
|
|
|
===================================================================
|
2022-02-01 20:19:28 +01:00
|
|
|
--- vsftpd-3.0.5.orig/postlogin.c 2015-07-22 21:03:22.000000000 +0200
|
|
|
|
+++ vsftpd-3.0.5/postlogin.c 2022-02-01 20:12:02.710908421 +0100
|
|
|
|
@@ -1061,6 +1061,11 @@ handle_upload_common(struct vsf_session*
|
2007-01-16 00:40:43 +01:00
|
|
|
{
|
2010-04-16 10:42:19 +02:00
|
|
|
do_truncate = 1;
|
2007-01-16 00:40:43 +01:00
|
|
|
}
|
|
|
|
+ if (new_file_fd >= 0) {
|
|
|
|
+ vsf_sysutil_fstat(new_file_fd, &s_p_statbuf);
|
|
|
|
+ if (vsf_sysutil_statbuf_is_regfile(s_p_statbuf))
|
|
|
|
+ vsf_sysutil_deactivate_noblock(new_file_fd);
|
|
|
|
+ }
|
|
|
|
}
|
|
|
|
if (vsf_sysutil_retval_is_error(new_file_fd))
|
|
|
|
{
|