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.

37 lines
1.5 KiB

  1. # --- SDE-COPYRIGHT-NOTE-BEGIN ---
  2. # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
  3. #
  4. # Filename: package/.../tcp_wrappers/0018-tcp_wrappers-7.6-man-fromhost.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 -ruN tcp_wrappers_7.6.orig/hosts_access.3 tcp_wrappers_7.6/hosts_access.3
  17. --- tcp_wrappers_7.6.orig/hosts_access.3 2004-04-25 00:10:48.000000000 +0200
  18. +++ tcp_wrappers_7.6/hosts_access.3 2004-04-25 00:09:36.000000000 +0200
  19. @@ -14,6 +14,9 @@
  20. struct request_info *request_set(request, key, value, ..., 0)
  21. struct request_info *request;
  22. +void fromhost(request)
  23. +struct request_info *request;
  24. +
  25. int hosts_access(request)
  26. struct request_info *request;
  27. @@ -60,6 +63,7 @@
  28. is available, host names and client user names are looked up on demand,
  29. using the request structure as a cache. hosts_access() returns zero if
  30. access should be denied.
  31. +fromhost() must be called before hosts_access().
  32. .PP
  33. hosts_ctl() is a wrapper around the request_init() and hosts_access()
  34. routines with a perhaps more convenient interface (though it does not