1 --- Makefile Sun Sep 12 03:37:58 2004
2 +++ tcp_wrappers.makefile.new Sun Sep 12 03:37:47 2004
6 @make REAL_DAEMON_DIR=$(REAL_DAEMON_DIR) STYLE=$(STYLE) \
7 - LIBS= RANLIB=ranlib ARFLAGS=rv AUX_OBJ=setenv.o \
8 + LIBS= ARFLAGS=rv AUX_OBJ=setenv.o \
9 NETGROUP= TLI= EXTRA_CFLAGS="-DBROKEN_SO_LINGER" all
11 # This is good for many SYSV+BSD hybrids with NIS, probably also for HP-UX 7.x.
13 # library; some don't care as long as the modules are in the right order;
14 # some systems don't even have a ranlib(1) command. Make your choice.
16 -RANLIB = ranlib # have ranlib (BSD-ish UNIX)
17 +#RANLIB = ranlib # have ranlib (BSD-ish UNIX)
18 #RANLIB = echo # no ranlib (SYSV-ish UNIX)
20 ARFLAGS = rv # most systems
22 # look for access control information. Watch out for the quotes and
23 # backslashes when you make changes.
25 -TABLES = -DHOSTS_DENY=\"/etc/hosts.deny\" -DHOSTS_ALLOW=\"/etc/hosts.allow\"
26 +TABLES = -DHOSTS_DENY=\"/opt/etc/hosts.deny\" -DHOSTS_ALLOW=\"/opt/etc/hosts.allow\" -DSYS_ERRLIST_DEFINED
28 ####################################################
29 # Optional: dealing with host name/address conflicts
30 --- tcp_wrappers_7.6/percent_m.c 1994-12-28 17:42:37.000000000 +0100
31 +++ tcpwrappers/percent_m.c 2006-05-29 11:49:52.000000000 +0200
36 -#ifndef SYS_ERRLIST_DEFINED
37 -extern char *sys_errlist[];
46 if (*cp == '%' && cp[1] == 'm') {
47 - if (errno < sys_nerr && errno > 0) {
48 - strcpy(bp, sys_errlist[errno]);
50 - sprintf(bp, "Unknown error %d", errno);
52 + strcpy(bp, strerror(errno));
56 --- tcp_wrappers_7.6/tli.c 1997-03-21 19:27:26.000000000 +0100
57 +++ tcpwrappers/tli.c 2006-05-29 11:51:51.000000000 +0200
60 extern char *nc_sperror();
62 -extern char *sys_errlist[];
65 extern char *t_errlist[];
68 return (t_errlist[t_errno]);
71 - if (errno < 0 || errno >= sys_nerr) {
72 - sprintf(buf, "Unknown UNIX error %d", errno);
75 - return (sys_errlist[errno]);
77 + return (strerror(errno));