diff options
author | Gisle Aas <gisle@activestate.com> | 2006-01-10 14:32:43 +0000 |
---|---|---|
committer | Gisle Aas <gisle@activestate.com> | 2006-01-10 14:32:43 +0000 |
commit | 18fd236b74f8374016eb16e779d1122c897d2f4a (patch) | |
tree | 83b123598706f486a7e4b20e4bf317ca5a3fdb7c /ext | |
parent | 8bee09919c67e00a5c9914bbf7027accbab0d391 (diff) | |
download | perl-18fd236b74f8374016eb16e779d1122c897d2f4a.tar.gz |
If getservbyname fails tell what service the lookup
attempt tried to use.
p4raw-id: //depot/perl@26768
Diffstat (limited to 'ext')
-rw-r--r-- | ext/Sys/Syslog/Syslog.pm | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/Sys/Syslog/Syslog.pm b/ext/Sys/Syslog/Syslog.pm index d47b1f73da..edcea04692 100644 --- a/ext/Sys/Syslog/Syslog.pm +++ b/ext/Sys/Syslog/Syslog.pm @@ -821,7 +821,7 @@ sub connect_tcp { my $syslog = getservbyname('syslog','tcp'); $syslog = getservbyname('syslogng','tcp') unless (defined $syslog); if (!defined $syslog) { - push(@{$errs}, "getservbyname failed for tcp"); + push(@{$errs}, "getservbyname failed for syslog/tcp and syslogng/tcp"); return 0; } @@ -859,7 +859,7 @@ sub connect_udp { } my $syslog = getservbyname('syslog','udp'); if (!defined $syslog) { - push(@{$errs}, "getservbyname failed for udp"); + push(@{$errs}, "getservbyname failed for syslog/udp"); return 0; } my $this = sockaddr_in($syslog, INADDR_ANY); |