Subject: pkg/5122: qpopper logs as LOG_LOCAL0
To: None <gnats-bugs@gnats.netbsd.org>
From: Chris Jones <cjones@mathfs.math.montana.edu>
List: netbsd-bugs
Date: 03/06/1998 15:15:10
>Number: 5122
>Category: pkg
>Synopsis: qpopper logs as LOG_LOCAL0
>Confidential: no
>Severity: non-critical
>Priority: medium
>Responsible: gnats-admin (GNATS administrator)
>State: open
>Class: change-request
>Submitter-Id: net
>Arrival-Date: Fri Mar 6 14:20:00 1998
>Last-Modified:
>Originator: Chris Jones
>Organization:
-------------------------------------------------------------------------------
Chris Jones cjones@rupert.honors.montana.edu
Mad scientist in training...
"Is this going to be a stand-up programming session, sir, or another bug hunt?"
>Release: <NetBSD-current source date>1.3
>Environment:
System: NetBSD mathfs.math.montana.edu 1.3 NetBSD 1.3 (MATHFS) #0: Fri Mar 6 13:56:56 MST 1998 cjones@mathfs.math.montana.edu:/usr/local/src/sys/arch/pmax/compile/MATHFS pmax
pkgsrc supped yesterday.
>Description:
qpopper, made from the pkgsrc, logs all its messages as LOG_LOCAL0,
LOG_NOTICE. LOG_LOCAL0 should be changed to LOG_MAIL. Also, the
individual messages that qpopper generates should all be evaluated for
their severity, and changed to the appropriate level. But I'm not
about to mess with that. I'd be more inclined to change the priority
to LOG_INFO, so I at least don't get a console message every time a
user checks their mail. That gets annoying when we have people with
Eudora set to check every 3 minutes.
>How-To-Repeat:
>Fix:
This patch changes the facility to LOG_MAIL, and the priority to
LOG_INFO.
*** popper.h.orig Fri Mar 6 15:04:02 1998
--- popper.h Fri Mar 6 15:07:07 1998
***************
*** 79,90 ****
#define MAXPARMLEN 10
#define ALLOC_MSGS 20
! #ifndef OSF1
! # define POP_FACILITY LOG_LOCAL0
! #else
# define POP_FACILITY LOG_MAIL
#endif
! #define POP_PRIORITY LOG_NOTICE
#define POP_DEBUG LOG_DEBUG
#define POP_LOGOPTS LOG_PID
--- 79,90 ----
#define MAXPARMLEN 10
#define ALLOC_MSGS 20
! #if defined(OSF1) || defined(__NetBSD__)
# define POP_FACILITY LOG_MAIL
+ #else
+ # define POP_FACILITY LOG_LOCAL0
#endif
! #define POP_PRIORITY LOG_INFO
#define POP_DEBUG LOG_DEBUG
#define POP_LOGOPTS LOG_PID
>Audit-Trail:
>Unformatted: