Blob Blame History Raw
diff -up vsftpd-2.0.7/standalone.c.close-fds vsftpd-2.0.7/standalone.c
--- vsftpd-2.0.7/standalone.c.close-fds	2008-09-08 23:36:32.000000000 -0400
+++ vsftpd-2.0.7/standalone.c	2008-09-08 23:37:53.000000000 -0400
@@ -131,6 +131,9 @@ vsf_standalone_main(void)
       die("could not bind listening IPv6 socket");
     }
   }
+  vsf_sysutil_close(0);
+  vsf_sysutil_close(1);
+  vsf_sysutil_close(2);
   retval = vsf_sysutil_listen(listen_sock, VSFTP_LISTEN_BACKLOG);
   if (vsf_sysutil_retval_is_error(retval))
   {