freebsd-ports/devel/p5-Log-Dispatch/files/patch-broken-perl-syslog
Mark Linimon c32fee98f9 Update to 2.07: added Log::Dispatch::File::Locked; switched to Module::Build
and removed interactive portion of installation process; bugfixes.  See
Changes for complete list.

PR:		ports/58071
Submitted by:	James Ainslie <james@starjuice.net>
Maintainer timeout:	4 months
2004-03-04 12:39:23 +00:00

22 lines
554 B
Text

$FreeBSD$
--- lib/Log/Dispatch/Syslog.pm.orig Sat Jun 22 01:10:31 2002
+++ lib/Log/Dispatch/Syslog.pm Mon Jul 1 06:23:54 2002
@@ -46,7 +46,7 @@
facility => { type => SCALAR,
default => 'user' },
socket => { type => SCALAR,
- default => 'unix' },
+ default => undef },
} );
$self->{ident} = $p{ident};
@@ -63,7 +63,7 @@
'ALERT',
'EMERG' ];
- Sys::Syslog::setlogsock $self->{socket};
+ Sys::Syslog::setlogsock $self->{socket} if defined $self->{socket};
}
sub log_message