aboutsummaryrefslogtreecommitdiffstats
path: root/mail/cyrus-imapd/files
diff options
context:
space:
mode:
authorume <ume@FreeBSD.org>2003-01-22 22:30:20 +0800
committerume <ume@FreeBSD.org>2003-01-22 22:30:20 +0800
commitc78519057f7bfde0bff03cba5613d0c2b7e0e913 (patch)
tree4a49b83af564c805029140a8acaeb103b3bb47f6 /mail/cyrus-imapd/files
parent0db633a844faf611d2d8a9af5e495405f6e874d6 (diff)
downloadfreebsd-ports-graphics-c78519057f7bfde0bff03cba5613d0c2b7e0e913.tar.gz
freebsd-ports-graphics-c78519057f7bfde0bff03cba5613d0c2b7e0e913.tar.zst
freebsd-ports-graphics-c78519057f7bfde0bff03cba5613d0c2b7e0e913.zip
better workaround against PF_LOCAL.
Diffstat (limited to 'mail/cyrus-imapd/files')
-rw-r--r--mail/cyrus-imapd/files/patch-df28
1 files changed, 10 insertions, 18 deletions
diff --git a/mail/cyrus-imapd/files/patch-df b/mail/cyrus-imapd/files/patch-df
index 93540e20940..69a0841343e 100644
--- a/mail/cyrus-imapd/files/patch-df
+++ b/mail/cyrus-imapd/files/patch-df
@@ -1,22 +1,14 @@
Index: master/service.c
-===================================================================
-RCS file: /usr/home/ume/ncvs/src/cyrus-imapd/master/service.c,v
-retrieving revision 1.2
-diff -u -r1.2 service.c
---- master/service.c 2001/02/01 14:11:43 1.2
-+++ master/service.c 2001/02/01 22:10:35
-@@ -99,7 +99,13 @@
+diff -u master/service.c.orig master/service.c
+--- master/service.c.orig Wed Jan 22 22:52:36 2003
++++ master/service.c Wed Jan 22 22:57:20 2003
+@@ -102,6 +102,9 @@
+ struct sockaddr_storage sin;
+ socklen_t len = sizeof(sin);
++ /* XXX: old FreeBSD didn't fill sockaddr correctly against AF_UNIX */
++ sin.ss_family = AF_UNIX;
++
/* is this a connection from the local host? */
if (getpeername(fd, (struct sockaddr *) &sin, &len) == 0) {
-- if (((struct sockaddr *)&sin)->sa_family == AF_UNIX) {
-+ switch (((struct sockaddr *)&sin)->sa_family) {
-+ case AF_INET:
-+#ifdef INET6
-+ case AF_INET6:
-+#endif
-+ break;
-+ default:
- return 1;
- }
- }
+ if (((struct sockaddr *)&sin)->sa_family == AF_UNIX) {