summaryrefslogtreecommitdiff
path: root/mail/youbin/files/patch-ae
diff options
context:
space:
mode:
Diffstat (limited to 'mail/youbin/files/patch-ae')
-rw-r--r--mail/youbin/files/patch-ae54
1 files changed, 54 insertions, 0 deletions
diff --git a/mail/youbin/files/patch-ae b/mail/youbin/files/patch-ae
new file mode 100644
index 000000000000..2c2edeceeb1f
--- /dev/null
+++ b/mail/youbin/files/patch-ae
@@ -0,0 +1,54 @@
+diff -c server.c.orig server.c
+*** server.c.orig Sun Mar 26 20:33:31 1995
+--- server.c Wed Aug 7 13:47:05 1996
+***************
+*** 244,250 ****
+ char buff[MESS_LEN + 1];
+ int len, flen = sizeof(ca);
+
+! if ((len = recvfrom(fid, buff, MESS_LEN, 0, &ca, &flen)) < 0) {
+ if (errno != EINTR) {
+ warn_log("Error in receiving packet\n");
+ }
+--- 244,250 ----
+ char buff[MESS_LEN + 1];
+ int len, flen = sizeof(ca);
+
+! if ((len = recvfrom(fid, buff, MESS_LEN, 0, (struct sockaddr *)&ca, &flen)) < 0) {
+ if (errno != EINTR) {
+ warn_log("Error in receiving packet\n");
+ }
+***************
+*** 543,549 ****
+ saddr->sin_family = hp->h_addrtype;
+ saddr->sin_addr.s_addr = htonl(INADDR_ANY);
+ saddr->sin_port = sp->s_port;
+! if (bind(id, saddr, sizeof(*saddr)) < 0) {
+ sys_error_log("bind");
+ exit(EXIT_FAILURE);
+ }
+--- 543,549 ----
+ saddr->sin_family = hp->h_addrtype;
+ saddr->sin_addr.s_addr = htonl(INADDR_ANY);
+ saddr->sin_port = sp->s_port;
+! if (bind(id, (struct sockaddr *)saddr, sizeof(*saddr)) < 0) {
+ sys_error_log("bind");
+ exit(EXIT_FAILURE);
+ }
+***************
+*** 586,592 ****
+ debug_log("Send: %s [%ld]: \"%.*s\"\n",
+ ((sp == CA_ADDR) ? "" : sp->parent->name), (long)sp,
+ MAX_DEBUG_COLUMN, mess);
+! if (sendto(sockid, mess, strlen(mess), 0, saddr, sizeof(*saddr)) < 0) {
+ warn_log("Error in sending packet: %s\n", mess);
+ }
+ }
+--- 586,592 ----
+ debug_log("Send: %s [%ld]: \"%.*s\"\n",
+ ((sp == CA_ADDR) ? "" : sp->parent->name), (long)sp,
+ MAX_DEBUG_COLUMN, mess);
+! if (sendto(sockid, mess, strlen(mess), 0, (struct sockaddr *)saddr, sizeof(*saddr)) < 0) {
+ warn_log("Error in sending packet: %s\n", mess);
+ }
+ }