1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
|
$NetBSD: patch-ag,v 1.7 2001/10/04 19:25:26 rh Exp $
--- src/IIOP/connection.c.orig Sun May 13 09:07:46 2001
+++ src/IIOP/connection.c
@@ -1,4 +1,7 @@
#include "config.h"
+#include <sys/types.h>
+#include <sys/param.h>
+#include <stdio.h>
#if defined (__hpux) && ! defined (_XOPEN_SOURCE_EXTENDED)
# define _XOPEN_SOURCE_EXTENDED 1
# define WE_DEFINED_XOPEN_SOURCE_EXTENDED 1
@@ -13,7 +16,6 @@
#include <stdlib.h>
#include <unistd.h>
#include <errno.h>
-#include <sys/types.h>
#include <fcntl.h>
#include <sys/socket.h>
#include <sys/un.h>
@@ -31,8 +33,9 @@
#include <sys/ioctl.h>
#include <signal.h>
#include <syslog.h>
+#include <pthread.h>
-#if defined(HAVE_TCPD_H) && defined(HAVE_HOSTS_ACCESS)
+#if defined(HAVE_TCPD_H)
#include <tcpd.h>
#endif
@@ -80,7 +83,7 @@
GIOPConnectionList giop_connection_list;
static GSList *iiop_unix_socket_list = NULL;
-#if defined(HAVE_HOSTS_ACCESS) && defined (HAVE_TCPD_H)
+#if defined (HAVE_TCPD_H)
static const char *argv0_val = NULL;
#endif
@@ -104,7 +107,7 @@
struct sigaction mypipe;
g_assert(sizeof(GIOPMessageHeader) == 12);
-#if defined(HAVE_HOSTS_ACCESS) && defined (HAVE_TCPD_H)
+#if defined (HAVE_TCPD_H)
argv0_val = g_strdup(g_basename(argv0)); /* For TCP wrappers */
#endif
@@ -1007,7 +1010,7 @@
*/
int allow_severity = LOG_INFO, deny_severity = LOG_NOTICE;
-#if defined(HAVE_HOSTS_ACCESS) && defined(HAVE_TCPD_H)
+#if defined(HAVE_TCPD_H)
DEFINE_LOCK(tcp_wrappers_usage);
#endif
@@ -1033,7 +1036,7 @@
newfd = accept(GIOP_CONNECTION_GET_FD(connection), &sock, &n);
-#if defined(HAVE_HOSTS_ACCESS) && defined(HAVE_TCPD_H)
+#if defined(HAVE_TCPD_H)
/* tcp wrappers access checking */
switch(IIOP_CONNECTION(connection)->icnxtype) {
case IIOP_IPV4:
|