OpenSDE Packages Database (without history before r20070)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

55 lines
2.1 KiB

  1. # --- SDE-COPYRIGHT-NOTE-BEGIN ---
  2. # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
  3. #
  4. # Filename: package/.../tcp_wrappers/0022-tcp_wrappers-7.6-rfc931.patch
  5. # Copyright (C) 2011 The OpenSDE Project
  6. #
  7. # More information can be found in the files COPYING and README.
  8. #
  9. # This patch file is dual-licensed. It is available under the license the
  10. # patched project is licensed under, as long as it is an OpenSource license
  11. # as defined at http://www.opensource.org/ (e.g. BSD, X11) or under the terms
  12. # of the GNU General Public License as published by the Free Software
  13. # Foundation; either version 2 of the License, or (at your option) any later
  14. # version.
  15. # --- SDE-COPYRIGHT-NOTE-END ---
  16. diff -ruNp tcp_wrappers_7.6.orig/scaffold.c tcp_wrappers_7.6/scaffold.c
  17. --- tcp_wrappers_7.6.orig/scaffold.c 2005-03-09 18:22:04.000000000 +0100
  18. +++ tcp_wrappers_7.6/scaffold.c 2005-03-09 18:20:47.000000000 +0100
  19. @@ -237,10 +237,17 @@ struct request_info *request;
  20. /* ARGSUSED */
  21. -void rfc931(request)
  22. -struct request_info *request;
  23. +void rfc931(rmt_sin, our_sin, dest)
  24. +#ifdef INET6
  25. +struct sockaddr *rmt_sin;
  26. +struct sockaddr *our_sin;
  27. +#else
  28. +struct sockaddr_in *rmt_sin;
  29. +struct sockaddr_in *our_sin;
  30. +#endif
  31. +char *dest;
  32. {
  33. - strcpy(request->user, unknown);
  34. + strcpy(dest, unknown);
  35. }
  36. /* check_path - examine accessibility */
  37. diff -ruNp tcp_wrappers_7.6.orig/tcpd.h tcp_wrappers_7.6/tcpd.h
  38. --- tcp_wrappers_7.6.orig/tcpd.h 2005-03-09 18:22:04.000000000 +0100
  39. +++ tcp_wrappers_7.6/tcpd.h 2005-03-09 18:21:23.000000000 +0100
  40. @@ -83,7 +83,11 @@ extern int hosts_access(struct request_i
  41. extern void shell_cmd(char *); /* execute shell command */
  42. extern char *percent_x(char *, int, char *, struct request_info *);
  43. /* do %<char> expansion */
  44. +#ifdef INET6
  45. extern void rfc931(struct sockaddr *, struct sockaddr *, char *);
  46. +#else
  47. +extern void rfc931(struct sockaddr_in *, struct sockaddr_in *, char *);
  48. +#endif
  49. /* client name from RFC 931 daemon */
  50. extern void clean_exit(struct request_info *); /* clean up and exit */
  51. extern void refuse(struct request_info *); /* clean up and exit */