diff options
author | Masafumi Max NAKANE <max@FreeBSD.org> | 1997-01-17 09:09:18 +0000 |
---|---|---|
committer | Masafumi Max NAKANE <max@FreeBSD.org> | 1997-01-17 09:09:18 +0000 |
commit | 9eb9d5227bbe12dd437c52cd3af998594bb3c09e (patch) | |
tree | c2b883f51c85062e2852f8c328c9bcf5cc46c08d /ftp/wu-ftpd/files/patch-ai | |
parent | This patch has been integrated in the original source. (diff) |
Rip off the patch to ftpd.c and one to access.c from patch-ai and
merge ftpd.c patch to patch-ad and access.c patch to patch-af.
(As clearly stated in the handbook, a file should be changed only by
one patch.)
Notes
Notes:
svn path=/head/; revision=5373
Diffstat (limited to 'ftp/wu-ftpd/files/patch-ai')
-rw-r--r-- | ftp/wu-ftpd/files/patch-ai | 54 |
1 files changed, 0 insertions, 54 deletions
diff --git a/ftp/wu-ftpd/files/patch-ai b/ftp/wu-ftpd/files/patch-ai index 0dc7c97dcdcb..67cb35730961 100644 --- a/ftp/wu-ftpd/files/patch-ai +++ b/ftp/wu-ftpd/files/patch-ai @@ -17,57 +17,3 @@ * allow use of private file. (for site group and site gpass) */ -*** src/access.c Sat Oct 7 07:52:31 1995 ---- src/access.c Sat Oct 7 10:10:04 1995 -*************** -*** 803,810 **** ---- 803,812 ---- - acl_join(class); - return (1); - } else { -+ #ifdef LOG_TOOMANY - syslog(LOG_NOTICE, "ACCESS DENIED (user limit %d; class %s) TO %s [%s]", - limit, class, remotehost, remoteaddr); -+ #endif - pr_mesg(msgcode, msgfile); - return (-1); - } -*** src/ftpd.c Sat Oct 7 07:52:30 1995 ---- src/ftpd.c Fri Oct 6 23:48:59 1995 -*************** -*** 1435,1441 **** - if (dout == NULL) - goto done; - #ifdef HAVE_ST_BLKSIZE -! send_data(fin, dout, st.st_blksize); - #else - send_data(fin, dout, BUFSIZ); - #endif ---- 1435,1441 ---- - if (dout == NULL) - goto done; - #ifdef HAVE_ST_BLKSIZE -! send_data(fin, dout, st.st_blksize*2); - #else - send_data(fin, dout, BUFSIZ); - #endif -*************** -*** 1718,1723 **** ---- 1718,1734 ---- - on = IPTOS_THROUGHPUT; - if (setsockopt(s, IPPROTO_IP, IP_TOS, (char *) &on, sizeof(int)) < 0) - syslog(LOG_WARNING, "setsockopt (IP_TOS): %m"); -+ #endif -+ #ifdef TCP_NOPUSH -+ /* -+ * Turn off push flag to keep sender TCP from sending short packets -+ * at the boundaries of each write(). Should probably do a SO_SNDBUF -+ * to set the send buffer size as well, but that may not be desirable -+ * in heavy-load situations. -+ */ -+ on = 1; -+ if (setsockopt(s, IPPROTO_TCP, TCP_NOPUSH, (char *)&on, sizeof on) < 0) -+ syslog(LOG_WARNING, "setsockopt (TCP_NOPUSH): %m"); - #endif - - return (fdopen(s, mode)); |