aboutsummaryrefslogtreecommitdiff
path: root/ftp/oftpd/files/patch-ftp_session.c
blob: eba07d5dc461b6d32d944e466c31b29ab2f3a70b (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
--- src/ftp_session.c.orig	Sun Jun 17 03:45:08 2001
+++ src/ftp_session.c	Sun Jun 17 03:46:26 2001
@@ -1165,7 +1165,7 @@
         /* 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 @@
 
 	    watchdog_defer_watched(f->watched);
         }
-#else
+#else */
         for (;;) {
             read_ret = read(file_fd, buf, sizeof(buf));
 	    if (read_ret == -1) {
@@ -1219,7 +1219,7 @@
 
 	    watchdog_defer_watched(f->watched);
 	}
-#endif  /* HAVE_SENDFILE */
+/* #endif */ /* HAVE_SENDFILE */
     }
 
     /* disconnect */