[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Perl LOG_AUTH & LOG_KERN undefined in Sys::Syslog?
- To: tech@openbsd.org
- Subject: Perl LOG_AUTH & LOG_KERN undefined in Sys::Syslog?
- From: "Richard Johnson" <rdump@river.com>
- Date: Fri, 18 May 2001 20:31:20 -0600
This happens in Perl on OpenBSD 2.8 patch branch & pre2.9 snapshots
(kernel: GENERIC #653), but not on Solaris 7 or Red Hat 6.2. The following
script:
#!/usr/bin/perl
use Sys::Syslog;
syslog ('info|auth', 'test');
# or... "syslog ('info|LOG_AUTH', 'test');" instead
results in:
syslog: invalid level/facility: auth
Similar results obtain with 'kern' or 'LOG_KERN', but not with 'ftp',
'mail', 'local6', etc.
I'm stumped. Can anyone spot why xlate() in syslog.pl thinks
&syslog'LOG_KERN, &syslog'LOG_AUTH are undefined? Is it a bug, or a
deliberate omission?
Rich