dhcpcd-discuss

Re: dhcpcd-run-hooks.in:syslog() expects logger to support '-i'

Roy Marples

Thu Jan 21 21:13:04 2016

Hi Chris

On 2016-01-21 18:11, Maynard, Chris wrote:
dhcpcd's dhcpcd-run-hooks.in:syslog()[1] expects logger to support the
'-i' option; however, Busybox's _logger_[2] does not currently support
this option.

Should '-i' be removed from dhcpcd's dhcpcd-run-hooks.in:syslog(), or
would you suggest that I file a Busybox enhancement bug request[3] to
add support for it?

Sadly, POSIX says that logger has no options so busybox have every right to refuse to add it. Will you ask them and report back here please?

Saying that, adding support for -i should be very trivial seeing as POSIX syslog(3) requires LOG_PID anyway.

While we could also add a logger test to the configure script, it would have a side effect of logging on success and I'm not sure that's a good thing!

Roy


Follow-Ups:
RE: dhcpcd-run-hooks.in:syslog() expects logger to support '-i'Maynard, Chris
References:
dhcpcd-run-hooks.in:syslog() expects logger to support '-i'Maynard, Chris
Archive administrator: postmaster@marples.name