|
Lines 1-72
Link Here
|
| 1 |
*** lib/omniORB2/orbcore/gatekeepers/alone/gatekeeper.cc.orig Mon Jan 10 13:43:45 2000 |
1 |
--- lib/omniORB2/orbcore/gatekeepers/alone/gatekeeper.cc.orig Thu Sep 23 04:21:42 1999 |
| 2 |
--- lib/omniORB2/orbcore/gatekeepers/alone/gatekeeper.cc Mon Jan 10 13:44:32 2000 |
2 |
+++ lib/omniORB2/orbcore/gatekeepers/alone/gatekeeper.cc Sat Feb 5 23:19:16 2000 |
| 3 |
*************** |
3 |
@@ -41,6 +41,10 @@ |
| 4 |
*** 112,118 **** |
4 |
|
| 5 |
|
5 |
#include <unistd.h> |
| 6 |
if ( getpeername ( handle, |
6 |
|
| 7 |
(struct sockaddr*) (void *) & clientAddr, |
7 |
+#if defined(__freebsd__) |
| 8 |
! & clientAddrSize ) ) { |
8 |
+#include <osreldate.h> |
| 9 |
LOGMESSAGE(1,"","Failed to authenticate peer name: access denied."); |
9 |
+#endif |
| 10 |
return 0 ; |
10 |
+ |
| 11 |
} |
11 |
#endif // __WIN32__ |
| 12 |
--- 112,118 ---- |
12 |
|
| 13 |
|
13 |
extern "C" void exit(int) ; |
| 14 |
if ( getpeername ( handle, |
14 |
@@ -99,7 +103,7 @@ |
| 15 |
(struct sockaddr*) (void *) & clientAddr, |
15 |
// ******************************** |
| 16 |
! (socklen_t *)& clientAddrSize ) ) { |
16 |
// retrieve the client name |
| 17 |
LOGMESSAGE(1,"","Failed to authenticate peer name: access denied."); |
17 |
// ******************************** |
| 18 |
return 0 ; |
18 |
-#if (defined(__GLIBC__) && __GLIBC__ >= 2) |
| 19 |
} |
19 |
+#if (defined(__GLIBC__) && __GLIBC__ >= 2) || (__FreeBSD_version >= 400013) |
| 20 |
*** lib/omniORB2/orbcore/tcpSocketMTfactory.cc.orig Wed Sep 22 16:22:50 1999 |
20 |
// GNU C library uses socklen_t * instead of int* in getpeername(). |
| 21 |
--- lib/omniORB2/orbcore/tcpSocketMTfactory.cc Mon Jan 10 15:41:52 2000 |
21 |
// This is suppose to be compatible with the upcoming POSIX standard. |
| 22 |
*************** |
22 |
socklen_t clientAddrSize; |
| 23 |
*** 532,538 **** |
|
|
| 24 |
|
| 25 |
l = sizeof(struct sockaddr_in); |
| 26 |
if (getsockname(pd_rendezvous, |
| 27 |
! (struct sockaddr *)&myaddr,&l) == RC_SOCKET_ERROR) { |
| 28 |
CLOSESOCKET(pd_rendezvous); |
| 29 |
#ifndef __WIN32__ |
| 30 |
throw CORBA::COMM_FAILURE(errno,CORBA::COMPLETED_NO); |
| 31 |
--- 532,538 ---- |
| 32 |
|
| 33 |
l = sizeof(struct sockaddr_in); |
| 34 |
if (getsockname(pd_rendezvous, |
| 35 |
! (struct sockaddr *)&myaddr,(socklen_t *)&l) == RC_SOCKET_ERROR) { |
| 36 |
CLOSESOCKET(pd_rendezvous); |
| 37 |
#ifndef __WIN32__ |
| 38 |
throw CORBA::COMM_FAILURE(errno,CORBA::COMPLETED_NO); |
| 39 |
*************** |
| 40 |
*** 1148,1154 **** |
| 41 |
|
| 42 |
PTRACE("Rendezvouser","block on accept()"); |
| 43 |
|
| 44 |
! if ((new_sock = ::accept(r->pd_rendezvous,(struct sockaddr *)&raddr,&l)) |
| 45 |
== RC_INVALID_SOCKET) { |
| 46 |
#ifndef __WIN32__ |
| 47 |
throw CORBA::COMM_FAILURE(errno,CORBA::COMPLETED_NO); |
| 48 |
--- 1148,1154 ---- |
| 49 |
|
| 50 |
PTRACE("Rendezvouser","block on accept()"); |
| 51 |
|
| 52 |
! if ((new_sock = ::accept(r->pd_rendezvous,(struct sockaddr *)&raddr,(socklen_t *)&l)) |
| 53 |
== RC_INVALID_SOCKET) { |
| 54 |
#ifndef __WIN32__ |
| 55 |
throw CORBA::COMM_FAILURE(errno,CORBA::COMPLETED_NO); |
| 56 |
*************** |
| 57 |
*** 1306,1312 **** |
| 58 |
#endif |
| 59 |
|
| 60 |
l = sizeof(struct sockaddr_in); |
| 61 |
! if ((new_sock = ::accept(r->pd_rendezvous,(struct sockaddr *)&raddr,&l)) |
| 62 |
== RC_INVALID_SOCKET) |
| 63 |
{ |
| 64 |
die = 1; |
| 65 |
--- 1306,1312 ---- |
| 66 |
#endif |
| 67 |
|
| 68 |
l = sizeof(struct sockaddr_in); |
| 69 |
! if ((new_sock = ::accept(r->pd_rendezvous,(struct sockaddr *)&raddr,(socklen_t *)&l)) |
| 70 |
== RC_INVALID_SOCKET) |
| 71 |
{ |
| 72 |
die = 1; |