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.

45 lines
1.6 KiB

  1. # --- SDE-COPYRIGHT-NOTE-BEGIN ---
  2. # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
  3. #
  4. # Filename: package/.../tcp_wrappers/0023-tcp_wrappers-7.6-safe_finger.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. --- tcp-wrappers-7.6-ipv6.1.orig/safe_finger.c
  17. +++ tcp-wrappers-7.6-ipv6.1/safe_finger.c
  18. @@ -26,21 +26,24 @@
  19. #include <stdio.h>
  20. #include <ctype.h>
  21. #include <pwd.h>
  22. +#include <syslog.h>
  23. extern void exit();
  24. /* Local stuff */
  25. -char path[] = "PATH=/bin:/usr/bin:/usr/ucb:/usr/bsd:/etc:/usr/etc:/usr/sbin";
  26. +char path[] = "PATH=/bin:/usr/bin:/sbin:/usr/sbin";
  27. #define TIME_LIMIT 60 /* Do not keep listinging forever */
  28. #define INPUT_LENGTH 100000 /* Do not keep listinging forever */
  29. #define LINE_LENGTH 128 /* Editors can choke on long lines */
  30. #define FINGER_PROGRAM "finger" /* Most, if not all, UNIX systems */
  31. #define UNPRIV_NAME "nobody" /* Preferred privilege level */
  32. -#define UNPRIV_UGID 32767 /* Default uid and gid */
  33. +#define UNPRIV_UGID 65534 /* Default uid and gid */
  34. int finger_pid;
  35. +int allow_severity = SEVERITY;
  36. +int deny_severity = LOG_WARNING;
  37. void cleanup(sig)
  38. int sig;