HomeFreeBSD

syslog(3): Send proper NILVALUE if gethostname(3) fails.

Description

syslog(3): Send proper NILVALUE if gethostname(3) fails.

RFC5424 defines NILVALUE as '-'. Replace its usage with a macro and
separate out the fields to be more clear. fputs(3) is used in some
places to avoid hiding possible format string problems in a macro.

Reviewed by: cem, vangyzen (earlier version)
Sponsored by: Dell EMC

Details

Provenance
bdreweryAuthored on Aug 14 2020, 12:18 AM
Parents
rG3bd8419597b4: flua: support "require" for binary objects in the base system
Branches
Unknown
Tags
Unknown