123456789101112131415161718192021222324252627282930 |
- --- tcp-wrappers-7.6-ipv6.1.orig/safe_finger.c
- +++ tcp-wrappers-7.6-ipv6.1/safe_finger.c
- @@ -26,21 +26,24 @@
- #include <stdio.h>
- #include <ctype.h>
- #include <pwd.h>
- +#include <syslog.h>
-
- extern void exit();
-
-
-
- -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
- #define INPUT_LENGTH 100000
- #define LINE_LENGTH 128
- #define FINGER_PROGRAM "finger"
- #define UNPRIV_NAME "nobody"
- -#define UNPRIV_UGID 32767
- +#define UNPRIV_UGID 65534
-
- int finger_pid;
- +int allow_severity = SEVERITY;
- +int deny_severity = LOG_WARNING;
-
- void cleanup(sig)
- int sig;
|