dhcpcd-discuss

Re: dhcpcd -P with 7.0.0-beta3 warns on unknown options

Roy Marples

Sat Apr 22 14:44:02 2017

Hi Guy

On 22/04/17 12:05, Guy Yur wrote:
> When running 'dhcpcd -P' to show pidfile with 7.0.0-beta3
> it warns on unknown options.
> # dhcpcd -P
> unknown option `rapid_commit'
> unknown option `domain_name_servers, domain_name, domain_search'
> unknown option `classless_static_routes'
> unknown option `interface_mtu'
> unknown option `dhcp_server_identifier'
> /var/run/dhcpcd.pid
> 
> 6.11.5 checks for print pidfile flag in logger() to not warn.
> if-options.c:791
> logger(ctx, LOG_ERR, "unknown option `%s'", arg);
> 
> common.c:124
> if (ctx != NULL && ctx->options & DHCPCD_PRINT_PIDFILE)
> return;
> 
> 
> 7.0.0-beta3 uses logerrx, vlogmessage which don't check
> for print pidfile flag.
> if-options.c:788
> logerrx("unknown option `%s'", arg);

Fixed here:
https://dev.marples.name/rDHC9b04fabf77cdc6daff576c83d53c5833738d63d3

Roy

References:
dhcpcd -P with 7.0.0-beta3 warns on unknown optionsGuy Yur
Archive administrator: postmaster@marples.name