]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
MFC r336086:
authored <ed@FreeBSD.org>
Mon, 27 Aug 2018 07:32:41 +0000 (07:32 +0000)
committered <ed@FreeBSD.org>
Mon, 27 Aug 2018 07:32:41 +0000 (07:32 +0000)
commit167415d0d19b8582c70f7942441eb1bce441380b
treea9a673c9943eb582c42e600d8222b640bd1410bc
parentd3a5596477a473c91e38691a054302133d0a3ecc
MFC r336086:

  Use the FQDN in the newsyslog log message when RFC 5424 is enabled.

  The RFC 5424 spec mentions that logging FQDNs over short hostnames is
  preferred. Alter this code, so that the hostname doesn't get truncated
  on startup. Keep track of the length of the short hostname, so that
  fprintf() can do the truncation where necessary.
usr.sbin/newsyslog/newsyslog.c