SHA256
1
0
forked from pool/vsftpd
vsftpd/vsftpd-2.0.4-dmapi.patch

15 lines
378 B
Diff

--- postlogin.c
+++ postlogin.c
@@ -992,6 +992,11 @@
{
new_file_fd = str_create_append(p_filename);
}
+ 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))
{