403Webshell
Server IP : 82.208.35.60  /  Your IP : 216.73.217.33
Web Server : Apache/2.4.55 (FreeBSD) OpenSSL/1.1.1q-freebsd PHP/7.3.31
System : FreeBSD server7.d2m.cz 12.4-RELEASE-p9 FreeBSD 12.4-RELEASE-p9 GENERIC amd64
User : studiokobylisy_cz ( 1008)
PHP Version : 7.3.31
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : OFF  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /usr/ports/ftp/oftpd/files/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /usr/ports/ftp/oftpd/files/patch-src_ftp__session.c
--- src/ftp_session.c.orig	2004-03-25 20:46:40 UTC
+++ src/ftp_session.c
@@ -1165,7 +1165,7 @@ static void do_retr(ftp_session_t *f, const ftp_comman
         /* for sendfile(), we still have to use a loop to avoid 
            having our watchdog time us out on large files - it does
            allow us to avoid an extra copy to/from user space */
-#ifdef HAVE_SENDFILE
+/* #ifdef HAVE_SENDFILE
         offset = f->file_offset;
         file_size = stat_buf.st_size - offset;
         while (offset < stat_buf.st_size) {
@@ -1200,7 +1200,7 @@ static void do_retr(ftp_session_t *f, const ftp_comman
 
 	    watchdog_defer_watched(f->watched);
         }
-#else
+#else */
         for (;;) {
             read_ret = read(file_fd, buf, sizeof(buf));
 	    if (read_ret == -1) {
@@ -1219,7 +1219,7 @@ static void do_retr(ftp_session_t *f, const ftp_comman
 
 	    watchdog_defer_watched(f->watched);
 	}
-#endif  /* HAVE_SENDFILE */
+/* #endif */ /* HAVE_SENDFILE */
     }
 
     /* disconnect */

Youez - 2016 - github.com/yon3zu
LinuXploit