From d687ff1687af4e866203f704543620f8c99c1965 Mon Sep 17 00:00:00 2001 From: "Eric S. Raymond" Date: Fri, 16 Oct 1998 22:49:11 +0000 Subject: Change from Marc Jauvin. svn path=/trunk/; revision=2099 --- driver.c | 14 +++----------- 1 file changed, 3 insertions(+), 11 deletions(-) diff --git a/driver.c b/driver.c index f335cf8e..f7ffc197 100644 --- a/driver.c +++ b/driver.c @@ -1221,8 +1221,7 @@ static void clean_skipped_list(struct idlist **skipped_list) *skipped_list = head; } -static void send_warning(struct query *ctl, - struct idlist **skipped_list, const char *user) +static void send_warning(struct query *ctl) /* send warning mail with skipped msg; reset msg count when user notified */ { int size, nbr; @@ -1232,7 +1231,7 @@ static void send_warning(struct query *ctl, int max_warning_poll_count, good, bad; char buf[100]; - head = *skipped_list; + head = ctl->skipped; if (!head) return; @@ -1295,19 +1294,12 @@ const struct method *proto; /* protocol method table */ { int ok, js, sock = -1; char *msg; - char localuser[32]; void (*sigsave)(); struct idlist *current=NULL, *prev=NULL, *next=NULL, *head=NULL, *tmp=NULL; protocol = (struct method *)proto; ctl->server.base_protocol = protocol; - strcpy(localuser, "root"); - if (ctl->localnames) - { - strcpy(localuser, ctl->localnames->id); - } - #ifndef KERBEROS_V4 if (ctl->server.preauthenticate == A_KERBEROS_V4) { @@ -1920,7 +1912,7 @@ const struct method *proto; /* protocol method table */ if (!check_only && ctl->skipped) { clean_skipped_list(&ctl->skipped); - send_warning(ctl, &ctl->skipped, localuser); + send_warning(ctl); } } } while -- cgit v1.2.3