search for: rq_user

Displaying 1 result from an estimated 1 matches for "rq_user".

Did you mean: r_user
2010 Dec 03
1
[PATCH] upsd tcp_wrappers parsing and logging
...git a/server/upsd.c b/server/upsd.c index 0e46595..eef5638 100644 --- a/server/upsd.c +++ b/server/upsd.c @@ -410,11 +410,13 @@ static void check_command(int cmdnum, ctype_t *client, int numarg, } #ifdef HAVE_WRAP - request_init(&req, RQ_DAEMON, progname, RQ_CLIENT_ADDR, client->addr, RQ_USER, client->username, 0); + request_init(&req, RQ_DAEMON, progname, RQ_FILE, client->sock_fd, 0); + fromhost(&req); if (!hosts_access(&req)) { /* tcp-wrappers says access should be denied */ send_err(client, NUT_ERR_ACCESS_DENIED); + upslogx(deny_severity, "tcp_...