qi: Make is_readable() function more flatter
[dragora.git] / patches / tcp_wrappers / safe_finger
blob5c8c9a1548a05bba14b6b5a3319e5769d71daf8b
1 --- tcp-wrappers-7.6-ipv6.1.orig/safe_finger.c
2 +++ tcp-wrappers-7.6-ipv6.1/safe_finger.c
3 @@ -26,21 +26,24 @@
4  #include <stdio.h>
5  #include <ctype.h>
6  #include <pwd.h>
7 +#include <syslog.h>
8  
9  extern void exit();
11  /* Local stuff */
13 -char    path[] = "PATH=/bin:/usr/bin:/usr/ucb:/usr/bsd:/etc:/usr/etc:/usr/sbin";
14 +char    path[] = "PATH=/bin:/usr/bin:/sbin:/usr/sbin";
16  #define        TIME_LIMIT      60              /* Do not keep listinging forever */
17  #define        INPUT_LENGTH    100000          /* Do not keep listinging forever */
18  #define        LINE_LENGTH     128             /* Editors can choke on long lines */
19  #define        FINGER_PROGRAM  "finger"        /* Most, if not all, UNIX systems */
20  #define        UNPRIV_NAME     "nobody"        /* Preferred privilege level */
21 -#define        UNPRIV_UGID     32767           /* Default uid and gid */
22 +#define        UNPRIV_UGID     65534           /* Default uid and gid */
24  int     finger_pid;
25 +int    allow_severity = SEVERITY;
26 +int    deny_severity = LOG_WARNING;
28  void    cleanup(sig)
29  int     sig;