Date: Mon, 27 Jul 1998 08:45:30 +0200 (CEST) From: Andre Albsmeier <andre.albsmeier@mchp.siemens.de> To: FreeBSD-gnats-submit@FreeBSD.ORG, Harlan.Stenn@pfcs.com, phk@FreeBSD.ORG Subject: bin/7407: small fix for new syslogd options Message-ID: <199807270645.IAA28545@internal>
next in thread | raw e-mail | index | archive | help
>Number: 7407 >Category: bin >Synopsis: small fix for new syslogd options >Confidential: no >Severity: serious >Priority: medium >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Sun Jul 26 23:50:01 PDT 1998 >Last-Modified: >Originator: Andre Albsmeier >Organization: >Release: FreeBSD 2.2.7-STABLE i386 >Environment: FreeBSD STABLE but the code actually is from current. >Description: Harlan.Stenn@pfcs.com added two (very interesting) options to syslogd for -current (Thanks Harald). However, on my attempt to try this on -STABLE, I found that when forwarding to another host the actual messages gets lost. This is due to a wrong index because when the -v option was added, the indexes shifted one place. Please, because I am actually using -STABLE, I were very glad if the new syslogd.c would be commited to -STABLE also. I didn't find any other problems running the new code on -STABLE the last days. In this case please don't forget the man-pages and the small change in usr.bin/wall/ttymsg.c Thanks. >How-To-Repeat: Take the new syslogd and log to another host. >Fix: --- syslogd.c.ORI Mon Jul 27 08:28:27 1998 +++ syslogd.c Mon Jul 27 08:27:43 1998 @@ -863,10 +863,10 @@ l = snprintf(line, sizeof line - 1, "<%d>%.15s Forwarded from %s: %s", f->f_prevpri, iov[0].iov_base, f->f_prevhost, - iov[4].iov_base); + iov[5].iov_base); else l = snprintf(line, sizeof line - 1, "<%d>%.15s %s", - f->f_prevpri, iov[0].iov_base, iov[4].iov_base); + f->f_prevpri, iov[0].iov_base, iov[5].iov_base); if (l > MAXLINE) l = MAXLINE; if ((finet >= 0) && >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199807270645.IAA28545>