diff options
author | Hajimu UMEMOTO <ume@FreeBSD.org> | 2003-01-22 14:30:20 +0000 |
---|---|---|
committer | Hajimu UMEMOTO <ume@FreeBSD.org> | 2003-01-22 14:30:20 +0000 |
commit | 90fd9a1b448f7addc951967e3324fad509a2ba1e (patch) | |
tree | 6c244ad99203b02a1c6215963f36561a578eec0d /mail/cyrus-imapd | |
parent | Take over maintainership (Brian says he's too busy flying real planes). (diff) |
better workaround against PF_LOCAL.
Notes
Notes:
svn path=/head/; revision=73782
Diffstat (limited to 'mail/cyrus-imapd')
-rw-r--r-- | mail/cyrus-imapd/files/patch-df | 28 |
1 files changed, 10 insertions, 18 deletions
diff --git a/mail/cyrus-imapd/files/patch-df b/mail/cyrus-imapd/files/patch-df index 93540e209402..69a0841343ee 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) { |