portmap-01-5beta.patch 2.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  1. --- p/from_local.c
  2. +++ p/from_local.c 2000/02/28 15:10:25
  3. @@ -46,6 +46,7 @@
  4. #include <sys/types.h>
  5. #include <sys/socket.h>
  6. #include <stdio.h>
  7. +#include <stdlib.h>
  8. #include <netdb.h>
  9. #include <netinet/in.h>
  10. #include <net/if.h>
  11. --- p/Makefile
  12. +++ p/Makefile 2000/02/28 15:10:25
  13. @@ -8,7 +8,7 @@
  14. # if you disagree. See `man 3 syslog' for examples. Some syslog versions
  15. # do not provide this flexibility.
  16. #
  17. -FACILITY=LOG_MAIL
  18. +FACILITY=LOG_AUTH
  19. # To disable tcp-wrapper style access control, comment out the following
  20. # macro definitions. Access control can also be turned off by providing
  21. @@ -71,7 +71,7 @@
  22. # With verbose logging on, HP-UX 9.x and AIX 4.1 leave zombies behind when
  23. # SIGCHLD is not ignored. Enable next macro for a fix.
  24. #
  25. -# ZOMBIES = -DIGNORE_SIGCHLD # AIX 4.x, HP-UX 9.x
  26. +ZOMBIES = -DIGNORE_SIGCHLD # AIX 4.x, HP-UX 9.x
  27. # Uncomment the following macro if your system does not have u_long.
  28. #
  29. @@ -81,11 +81,15 @@
  30. # libwrap.a object library. WRAP_DIR should specify the directory with
  31. # that library.
  32. -WRAP_DIR= ../tcp_wrappers
  33. +WRAP_DIR= /usr/lib
  34. # Auxiliary object files that may be missing from your C library.
  35. #
  36. -AUX = daemon.o strerror.o
  37. +AUX = # daemon.o strerror.o
  38. +
  39. +LIBS = -lwrap -lutil
  40. +NSARCHS =
  41. +O = -Wall -O2 -pipe
  42. # NEXTSTEP is a little different. The following seems to work with NS 3.2
  43. #
  44. @@ -99,7 +103,7 @@
  45. # Comment out if your compiler talks ANSI and understands const
  46. #
  47. -CONST = -Dconst=
  48. +#CONST = -Dconst=
  49. ### End of configurable stuff.
  50. ##############################
  51. @@ -109,7 +113,7 @@
  52. COPT = $(CONST) -Dperror=xperror $(HOSTS_ACCESS) $(CHECK_PORT) \
  53. $(SYS) -DFACILITY=$(FACILITY) $(ULONG) $(ZOMBIES) $(SA_LEN) \
  54. $(LOOPBACK) $(SETPGRP)
  55. -CFLAGS = $(COPT) -O $(NSARCHS)
  56. +CFLAGS = $(COPT) $(O) $(NSARCHS)
  57. OBJECTS = portmap.o pmap_check.o from_local.o $(AUX)
  58. all: portmap pmap_dump pmap_set
  59. --- p/portmap.c
  60. +++ p/portmap.c 2000/02/28 15:10:25
  61. @@ -182,9 +182,8 @@
  62. exit(1);
  63. }
  64. -#ifdef LOG_MAIL
  65. - openlog("portmap", debugging ? LOG_PID | LOG_PERROR : LOG_PID,
  66. - FACILITY);
  67. +#ifdef FACILITY
  68. + openlog("portmap", debugging ? LOG_PID | LOG_PERROR : LOG_PID, FACILITY);
  69. #else
  70. openlog("portmap", debugging ? LOG_PID | LOG_PERROR : LOG_PID);
  71. #endif