forked from pool/vsftpd
d77971a489
OBS-URL: https://build.opensuse.org/package/show/network/vsftpd?expand=0&rev=fd23e483ffedafa38a37842f003f7bd2
15 lines
398 B
Diff
15 lines
398 B
Diff
--- postlogin.c.orig
|
|
+++ postlogin.c
|
|
@@ -1036,6 +1036,11 @@ handle_upload_common(struct vsf_session*
|
|
{
|
|
do_truncate = 1;
|
|
}
|
|
+ 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))
|
|
{
|