Sophie

Sophie

distrib > * > 2008.0 > x86_64 > by-pkgid > 5cda9a2de57bc9e03ebe2083ef65c333 > files > 15

vsftpd-2.0.5-8mdv2008.0.src.rpm

--- vsftpd-2.0.5/postlogin.c.orig	2007-05-02 19:43:54.000000000 +0200
+++ vsftpd-2.0.5/postlogin.c	2007-05-02 19:44:28.000000000 +0200
@@ -1009,7 +1009,7 @@
   /* Are we required to chown() this file for security? */
   if (p_sess->is_anonymous && tunable_chown_uploads)
   {
-    vsf_sysutil_fchmod(new_file_fd, 0600);
+    vsf_sysutil_fchmod(new_file_fd, (0777 & ~tunable_anon_umask));
     if (tunable_one_process_model)
     {
       vsf_one_process_chown_upload(p_sess, new_file_fd);