On 8/14/12 11:50 :16AM, Sébastien Aperghis-Tramoni via RT wrote:
Show quoted text> <URL:
https://rt.cpan.org/Ticket/Display.html?id=78044 >
>
> Hello,
>
>
> Chan Wilson wrote via RT:
>
>> The current way the 'check' sub is done for the TCP service *requires* a
>> services entry of syslog/tcp or syslogng/tcp.
>>
>> Neither of these need be true if the port is also specified.
>>
>> UDP suffers from this same problem.
>
> Do you mean this part of the code?
> »
https://github.com/maddingue/Sys-Syslog/blob/master/Syslog.pm#L228
>
> It makes a call to getservbyname(), which may indeed look into a /etc/services if your operating system uses one. AFAIK that this is the traditional way for Unix administrators to enable or disable some services not their systems.
>
>
It is that section of code (for both TCP and UDP), yes.
The bug is, that when you desire to use a syslog connection via TCP, it
will *fail* because there is no standard
TCP syslog port (as just checked on several recent and vintage unix-like
O/S). The check sub should be
modified so that if the port is specified, the getservbyname() call is
skipped -- it's not needed.
--Chan