diff options
author | Steve Dickson <steved@redhat.com> | 2009-03-08 10:10:25 -0400 |
---|---|---|
committer | Steve Dickson <steved@redhat.com> | 2009-03-08 10:10:25 -0400 |
commit | 06da4cfd46942acaaa5bd2e7933fd290701d186d (patch) | |
tree | 17bac8dceb622a825ec0f5726071329e0099a7a4 /support/misc | |
parent | e34cc88a18db9dc0b620691990ad5047b796d209 (diff) | |
download | nfs-utils-06da4cfd46942acaaa5bd2e7933fd290701d186d.tar.gz |
Added back the some logging variables which are nonfs-utils-1-1-6-rc1nfs-utils-1-1-5-rc1
longer used but, unfortunately, they are extern-ed by
public headers files which are not under the control
of this package.
Spotted-by: Juergen Daubert <jue@jue.li>
Signed-off-by: Steve Dickson <steved@redhat.com>
Diffstat (limited to 'support/misc')
-rw-r--r-- | support/misc/tcpwrapper.c | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/support/misc/tcpwrapper.c b/support/misc/tcpwrapper.c index a361496..1da6020 100644 --- a/support/misc/tcpwrapper.c +++ b/support/misc/tcpwrapper.c @@ -60,8 +60,16 @@ static void logit(int severity, struct sockaddr_in *addr, u_long procnum, u_long prognum, char *text); static int check_files(void); +/* + * These need to exist since they are externed + * public header files. + */ +int verboselog = 0; +int allow_severity = LOG_INFO; +int deny_severity = LOG_WARNING; + #define log_bad_host(addr, proc, prog) \ - logit(LOG_WARNING, addr, proc, prog, "request from unauthorized host") + logit(deny_severity, addr, proc, prog, "request from unauthorized host") #define ALLOW 1 #define DENY 0 |