From: Gisle Aas Date: Sat, 3 Dec 2005 03:35:32 +0000 (-0800) Subject: Sys::Syslog::syslog can accept a message without printf X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=ce43db9bedd4c6999381bd25cfc0127c2b615272;p=p5sagit%2Fp5-mst-13.2.git Sys::Syslog::syslog can accept a message without printf escapes and arguments. Subject: Re: Perl PR: "Security holes in Sys::Syslog" Message-ID: p4raw-id: //depot/perl@26247 --- diff --git a/ext/Sys/Syslog/Syslog.pm b/ext/Sys/Syslog/Syslog.pm index c56d37c..4f06357 100644 --- a/ext/Sys/Syslog/Syslog.pm +++ b/ext/Sys/Syslog/Syslog.pm @@ -7,7 +7,7 @@ use strict; our @ISA = qw(Exporter); our @EXPORT = qw(openlog closelog setlogmask syslog); our @EXPORT_OK = qw(setlogsock); -our $VERSION = '0.07'; +our $VERSION = '0.08'; # it would be nice to try stream/unix first, since that will be # most efficient. However streams are dodgy - see _syslog_send_stream @@ -65,6 +65,8 @@ daemon. B +=item syslog $priority, $message + =item syslog $priority, $format, @args If I<$priority> permits, logs I<($format, @args)> @@ -320,7 +322,7 @@ sub syslog { $mask =~ s/(?$whoami: $message\0";