Re: [dev] Attempt at a suckless syslog

From: Weldon Goree <weldon_AT_langurwallah.org>
Date: Fri, 18 Jul 2014 22:27:06 +0530

On 07/18/2014 06:46 PM, Zack Breckenridge wrote:
>
> Regarding line 91-92 of logwd.c:
>
>> if ((severity > 7) || (severity < 0)) { severity = 8; }
>> /* Sue me. I'm paranoid. I'm aware of how this "can't happen"... */
>
> Of course you never know... Is it possible to make severity and
> facility unsigned integers?
>

It comes over the wire as an ASCII char which is by contract between 0
and 7, but nothing keeps a logger from putting the digit '8' or '9'
there. If you see the corresponding config.def.h tables I entitled that
severity "non-standard" or something like that.

Weldon
Received on Fri Jul 18 2014 - 18:57:06 CEST

This archive was generated by hypermail 2.3.0 : Fri Jul 18 2014 - 19:00:11 CEST