summaryrefslogtreecommitdiff
path: root/package/tcp_wrappers/patches/patch-safe_finger_c
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@openadk.org>2009-06-05 19:58:50 +0200
committerWaldemar Brodkorb <wbx@openadk.org>2009-06-05 19:58:50 +0200
commite874f84fdb6eb83d905a72b35d87398374594b97 (patch)
tree38ecc86989a194756836fa411c4bfb7c4b68913f /package/tcp_wrappers/patches/patch-safe_finger_c
parent68e89ea1a3ec3690ddefbd97c45174f799847a16 (diff)
more regressions found at runtime on alic1c
Diffstat (limited to 'package/tcp_wrappers/patches/patch-safe_finger_c')
-rw-r--r--package/tcp_wrappers/patches/patch-safe_finger_c29
1 files changed, 29 insertions, 0 deletions
diff --git a/package/tcp_wrappers/patches/patch-safe_finger_c b/package/tcp_wrappers/patches/patch-safe_finger_c
new file mode 100644
index 000000000..2b38a30e1
--- /dev/null
+++ b/package/tcp_wrappers/patches/patch-safe_finger_c
@@ -0,0 +1,29 @@
+--- tcp_wrappers_7.6.orig/safe_finger.c 1994-12-28 17:42:42.000000000 +0100
++++ tcp_wrappers_7.6/safe_finger.c 2009-06-05 18:45:03.000000000 +0200
+@@ -26,21 +26,24 @@ static char sccsid[] = "@(#) safe_finger
+ #include <stdio.h>
+ #include <ctype.h>
+ #include <pwd.h>
++#include <syslog.h>
+
+ extern void exit();
+
+ /* Local stuff */
+
+-char path[] = "PATH=/bin:/usr/bin:/usr/ucb:/usr/bsd:/etc:/usr/etc:/usr/sbin";
++char path[] = "PATH=/bin:/usr/bin:/sbin:/usr/sbin";
+
+ #define TIME_LIMIT 60 /* Do not keep listinging forever */
+ #define INPUT_LENGTH 100000 /* Do not keep listinging forever */
+ #define LINE_LENGTH 128 /* Editors can choke on long lines */
+ #define FINGER_PROGRAM "finger" /* Most, if not all, UNIX systems */
+ #define UNPRIV_NAME "nobody" /* Preferred privilege level */
+-#define UNPRIV_UGID 32767 /* Default uid and gid */
++#define UNPRIV_UGID 65534 /* Default uid and gid */
+
+ int finger_pid;
++int allow_severity = SEVERITY;
++int deny_severity = LOG_WARNING;
+
+ void cleanup(sig)
+ int sig;