2010-04-16 08:42:19 +00:00
|
|
|
Index: postlogin.c
|
|
|
|
===================================================================
|
2010-08-11 15:31:04 +00:00
|
|
|
--- postlogin.c.orig 2010-03-26 05:01:06.000000000 +0100
|
|
|
|
+++ postlogin.c 2010-08-10 06:51:06.796475000 +0200
|
|
|
|
@@ -1036,6 +1036,11 @@ handle_upload_common(struct vsf_session*
|
2007-01-15 23:40:43 +00:00
|
|
|
{
|
2010-04-16 08:42:19 +00:00
|
|
|
do_truncate = 1;
|
2007-01-15 23:40:43 +00: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))
|
|
|
|
{
|