SHA256
1
0
forked from pool/vsftpd
vsftpd/vsftpd-2.0.4-dmapi.patch
Michal Seben 1862a11661 Accepting request 37575 from server:ftp
Copy from server:ftp/vsftpd via accept of submit request 37575 revision 4.
Request was accepted with message:

OBS-URL: https://build.opensuse.org/request/show/37575
OBS-URL: https://build.opensuse.org/package/show/network/vsftpd?expand=0&rev=7
2010-04-09 15:17:29 +00:00

17 lines
485 B
Diff

Index: postlogin.c
===================================================================
--- postlogin.c.orig
+++ postlogin.c
@@ -1015,6 +1015,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))
{