14 lines
544 B
Text
14 lines
544 B
Text
Index: master/service.c
|
|
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) {
|