aboutsummaryrefslogtreecommitdiffstats
path: root/ftp
diff options
context:
space:
mode:
authorkevlo <kevlo@FreeBSD.org>2001-05-29 21:26:13 +0800
committerkevlo <kevlo@FreeBSD.org>2001-05-29 21:26:13 +0800
commit059812baa3852e346f822cd9660d1c688776f332 (patch)
tree354680fb030c487801c51dfcd79b5e9894c5b66a /ftp
parentc7e7807e2f8a421c0f8c5371305476a09f56adc3 (diff)
downloadfreebsd-ports-gnome-059812baa3852e346f822cd9660d1c688776f332.tar.gz
freebsd-ports-gnome-059812baa3852e346f822cd9660d1c688776f332.tar.zst
freebsd-ports-gnome-059812baa3852e346f822cd9660d1c688776f332.zip
oops, forgot to remove those patches.
Diffstat (limited to 'ftp')
-rw-r--r--ftp/oftpd/files/patch-ftp_listener.c11
-rw-r--r--ftp/oftpd/files/patch-ftp_session.c47
2 files changed, 0 insertions, 58 deletions
diff --git a/ftp/oftpd/files/patch-ftp_listener.c b/ftp/oftpd/files/patch-ftp_listener.c
deleted file mode 100644
index ec88bf2f244c..000000000000
--- a/ftp/oftpd/files/patch-ftp_listener.c
+++ /dev/null
@@ -1,11 +0,0 @@
---- src/ftp_listener.c.orig Wed Apr 18 23:42:48 2001
-+++ src/ftp_listener.c Sun Apr 22 14:26:41 2001
-@@ -361,7 +361,7 @@
- if (fd >= 0) {
-
- tcp_nodelay = 1;
-- if (setsockopt(fd, SOL_TCP, TCP_NODELAY, (void *)&tcp_nodelay,
-+ if (setsockopt(fd, IPPROTO_TCP, TCP_NODELAY, (void *)&tcp_nodelay,
- sizeof(int)) != 0)
- {
- syslog(LOG_ERR,
diff --git a/ftp/oftpd/files/patch-ftp_session.c b/ftp/oftpd/files/patch-ftp_session.c
deleted file mode 100644
index 277145f60ae5..000000000000
--- a/ftp/oftpd/files/patch-ftp_session.c
+++ /dev/null
@@ -1,47 +0,0 @@
---- src/ftp_session.c.orig Wed Apr 18 23:43:37 2001
-+++ src/ftp_session.c Mon Apr 23 00:38:15 2001
-@@ -3,13 +3,13 @@
- */
-
- #include <config.h>
-+#include <sys/types.h>
- #include <netinet/in.h>
- #include <string.h>
- #include <stdio.h>
- #include <stdarg.h>
- #include <sys/stat.h>
- #include <unistd.h>
--#include <sys/types.h>
- #include <fcntl.h>
- #include <sys/socket.h>
- #include <errno.h>
-@@ -1130,7 +1130,8 @@
- /* 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_LINUX_SENDFILE
-+#ifdef FOO_HAVE_LINUX_SENDFILE
-+// This doesn't work yet. I'm working with the author to fix it.
- offset = f->file_offset;
- file_size = stat_buf.st_size - offset;
- while (offset < stat_buf.st_size) {
-@@ -1139,11 +1140,14 @@
- if (amt_to_send > 65536) {
- amt_to_send = 65536;
- }
-- sendfile_ret = sendfile(socket_fd,
-- file_fd,
-- &offset,
-- amt_to_send);
-- if (sendfile_ret != amt_to_send) {
-+ sendfile_ret = sendfile(file_fd,
-+ socket_fd,
-+ offset,
-+ amt_to_send,
-+ NULL,
-+ NULL,
-+ 0);
-+ if (sendfile_ret != 0) {
- reply(f, 550, "Error sending file; %s.", strerror(errno));
- goto exit_retr;
- }