diff options
author | phk <phk@FreeBSD.org> | 1998-07-27 13:04:14 +0000 |
---|---|---|
committer | phk <phk@FreeBSD.org> | 1998-07-27 13:04:14 +0000 |
commit | a1a5f020edd2ffc13bcc804c4fe1d46ca3ea1125 (patch) | |
tree | 117ac162e34f18d25c4bbc144661c540cb0742ad /usr.sbin/syslogd | |
parent | ff2f7584e8645ddd7fa607e4ae1419fef90515f6 (diff) | |
download | FreeBSD-src-a1a5f020edd2ffc13bcc804c4fe1d46ca3ea1125.zip FreeBSD-src-a1a5f020edd2ffc13bcc804c4fe1d46ca3ea1125.tar.gz |
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.
PR: 7407
Submitted by: Andre Albsmeier <andre.albsmeier@mchp.siemens.de>
Diffstat (limited to 'usr.sbin/syslogd')
-rw-r--r-- | usr.sbin/syslogd/syslogd.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.sbin/syslogd/syslogd.c b/usr.sbin/syslogd/syslogd.c index 72c178e..05448c0 100644 --- a/usr.sbin/syslogd/syslogd.c +++ b/usr.sbin/syslogd/syslogd.c @@ -42,7 +42,7 @@ static const char copyright[] = static char sccsid[] = "@(#)syslogd.c 8.3 (Berkeley) 4/4/94"; #endif static const char rcsid[] = - "$Id: syslogd.c,v 1.38 1998/07/06 20:28:08 bde Exp $"; + "$Id: syslogd.c,v 1.39 1998/07/22 06:15:19 phk Exp $"; #endif /* not lint */ /* @@ -863,10 +863,10 @@ fprintlog(f, flags, msg) 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) && |