tar@ksuvax1.cis.ksu.edu (Tim Ramsey) (01/31/89)
If you have SYSLOG defined in defs.h, your log file will have an annoying
"^I" imbedded in some of the lines:
Jan 30 22:43:07 ksuvax1 deimos: <15755@srcsip.UUCP>^Ireceived [ so on... ]
^^
/etc/syslogd converts control characters passed to it to their "caret" form.
"^I" is ASCII TAB. Is this particular case a bug or a feature?
The fix is simple. Here's the patch:
*** funcs.c.old Mon Jan 30 23:28:43 1989
--- funcs.c Mon Jan 30 23:29:07 1989
***************
*** 433,443 ****
#ifdef SYSLOG
if (which ) {
openlog(Progname, 0, LOG_NEWS);
! syslog(LOG_ERR, "%s %s\t%s", rmtsys,
header.ident[0] ? header.ident : username, msg);
} else {
openlog(rmtsys, 0, LOG_NEWS);
! syslog(LOG_INFO, "%s\t%s",
header.ident[0] ? header.ident : username, msg);
}
#else /* !SYSLOG */
--- 433,443 ----
#ifdef SYSLOG
if (which ) {
openlog(Progname, 0, LOG_NEWS);
! syslog(LOG_ERR, "%s %s %s", rmtsys,
header.ident[0] ? header.ident : username, msg);
} else {
openlog(rmtsys, 0, LOG_NEWS);
! syslog(LOG_INFO, "%s %s",
header.ident[0] ? header.ident : username, msg);
}
#else /* !SYSLOG */
--
Timothy Ramsey
BITNET: tar@KSUVAX1
Internet: tar@ksuvax1.cis.ksu.edu
UUCP: ...!rutgers!ksuvax1!tar -or- ...!{pyramid,ucsd}!ncr-sd!ncrwic!ksuvax1!tar