Article View: news.software.nntp
Article #1845Re: Tip for jtkohl-syslog ULTRIX INN users
From: Ulf Kieber
Date: Fri, 30 Apr 1993 17:38
Date: Fri, 30 Apr 1993 17:38
130 lines
4708 bytes
4708 bytes
In article <1rp63sINNsgd@rex.graphics.cornell.edu>, mkc@Graphics.Cornell.edu (Mitch Collinsworth) writes:
>Is anyone running ULTRIX 4.3 with out-of-the-box sendmail and syslog
>getting sendmail messages in their syslog?
Well, I'm running the BSD syslog that came with INN with a few #define's
changed, and some other changes to shut lint up. Its running on
ULTRIX 4.3 (we had it run on 4.2 also), and I never had problems with
sendmail not logging mail.
Ok, folks, here's the diff:
------------------------------cut-----------------------------
*** syslog.c.orig Thu Mar 18 22:05:11 1993
--- syslog.c Sun Mar 21 17:19:39 1993
***************
*** 75,81 ****
extern char *index(), *strcpy(), *strncpy(), *strcat();
/* =()<extern @<SIZE_T>@ strlen();>()= */
! extern int strlen();
/*
** Return a string representation of errno.
--- 75,81 ----
extern char *index(), *strcpy(), *strncpy(), *strcat();
/* =()<extern @<SIZE_T>@ strlen();>()= */
! extern size_t strlen();
/*
** Return a string representation of errno.
*** syslogd.c.orig Sat Aug 22 22:40:49 1992
--- syslogd.c Mon Mar 22 02:42:15 1993
***************
*** 9,17 ****
#define _PATH_LOGPID "/etc/syslog.pid"
/* #define this to enable verbose debugging of all messages. */
! #undef VERBOSE_DEBUG
/* #define this to line to listen on the INET port. */
! #undef DO_INET_SOCKET
/* #undef this to not read kernel syslog messages. */
#define _PATH_KLOG "/dev/klog"
#undef _PATH_KLOG
--- 9,17 ----
#define _PATH_LOGPID "/etc/syslog.pid"
/* #define this to enable verbose debugging of all messages. */
! #define VERBOSE_DEBUG
/* #define this to line to listen on the INET port. */
! #define DO_INET_SOCKET
/* #undef this to not read kernel syslog messages. */
#define _PATH_KLOG "/dev/klog"
#undef _PATH_KLOG
***************
*** 19,25 ****
/* =()<#define SIGHANDLER @<SIGHANDLER>@>()= */
#define SIGHANDLER void
/* if you need various BSD functions, set this. */
! #define NEED_BZERO_ETC
/* Use "union wait" instead of int? */
/* =()<#define @<USE_UNION_WAIT>@_USE_UNION_WAIT>()= */
--- 19,25 ----
/* =()<#define SIGHANDLER @<SIGHANDLER>@>()= */
#define SIGHANDLER void
/* if you need various BSD functions, set this. */
! #undef NEED_BZERO_ETC
/* Use "union wait" instead of int? */
/* =()<#define @<USE_UNION_WAIT>@_USE_UNION_WAIT>()= */
***************
*** 842,848 ****
return;
}
/* NOSTRICT */
! while (fread((char *) &ut, sizeof ut, 1, uf) == 1) {
if (ut.ut_name[0] == '\0')
continue;
if (f->f_type == F_WALL) {
--- 842,848 ----
return;
}
/* NOSTRICT */
! while (fread((void *) &ut, sizeof ut, 1, uf) == 1) {
if (ut.ut_name[0] == '\0')
continue;
if (f->f_type == F_WALL) {
***************
*** 1017,1023 ****
break;
}
next = f->f_nextone;
! free((char *) f);
}
Files = NULL;
nextp = &Files;
--- 1017,1023 ----
break;
}
next = f->f_nextone;
! free((void *) f);
}
Files = NULL;
nextp = &Files;
------------------------------cut-----------------------------
And here is my syslog.conf:
*.alert,news.none root
*.alert /dev/console
*.debug,mark.info,news.none /usr/spool/mqueue/syslog
news.crit news
news.crit /news/log/syslog.news.crit
news.err /news/log/syslog.news.err
news.notice /news/log/syslog.news.notice
news.debug /news/log/syslog.news.debug
Hope this helps.
--
Ulf Kieber
<kieber@sax.sax.de>, <ulf@maria.wustl.edu>,
<{kieber@is2151, tud-list-request@freia, news@irz401}.inf.tu-dresden.de>
Don't expect me to be a breeder, and I won't assume you're a fag.
Technical Details
Message-ID:
<1rro76$ara@irz401.inf.tu-dresden.de>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!mbox2nntp-comp.unix.ultrix.mbox.zip!gmd.de!ira.uka.de!math.fu-berlin.de!news.tu-chemnitz.de!irz401!uk1References:
<1rh10nINNn0r@rex.graphics.cornell.edu> <1rjurrINNoj2@rex.graphics.cornell.edu> <1rmadiINNl9a@ope001.iao.ford.com> <1rp63sINNsgd@rex.graphics.cornell.edu>Show Full Headers
Complete Article Headers
Message-ID: <1rro76$ara@irz401.inf.tu-dresden.de> Subject: Re: Tip for jtkohl-syslog ULTRIX INN users Date: Fri, 30 Apr 1993 17:38:46 +0000 From: uk1@irz.inf.tu-dresden.de (Ulf Kieber) References: <1rh10nINNn0r@rex.graphics.cornell.edu> <1rjurrINNoj2@rex.graphics.cornell.edu> <1rmadiINNl9a@ope001.iao.ford.com> <1rp63sINNsgd@rex.graphics.cornell.edu> Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!mbox2nntp-comp.unix.ultrix.mbox.zip!gmd.de!ira.uka.de!math.fu-berlin.de!news.tu-chemnitz.de!irz401!uk1 Newsgroups: news.software.nntp,comp.unix.ultrix Organization: Dept. of Computer Science, TU Dresden, Germany Lines: 129 Distribution: inet Reply-To: kieber@is2151.inf.tu-dresden.de NNTP-Posting-Host: irz404.inf.tu-dresden.de