dhcpcd-discuss

Re: nonstandard options missing from --dumplease in 6.10.1

Roy Marples

Sat Oct 21 13:17:54 2017

Hi Mike

On 19/10/2017 23:45, Mike McCabe wrote:
Thanks for testing!  I'm still able to reproduce the issue, stock raspbian jessie lite works vs. raspbian stretch lite doesn't... in each case with option vium-env lines added to dhcpcd.conf



$ dhcpcd -V4 | grep vium
239 vium-env                                     string

$ dhcpcd -U4 eth0 | grep vium
domain_name='vium.com <http://vium.com>'
< no vium-env >

I've been so blind!
It's not a dhcpcd bug per se, but the shell you're using.
dhcpcd just sets env vars as given, however, it makes no attempt to sanitize them instead leaving it up to whatever the hook uses.
In this case it's /bin/sh.
I'm guessing there has been an upgrade there which stops - being used in environment vars. You aren't allowed - in shell variables, and you use shell variables to extract env vars.

Try changing from vium-env to vium_env and you'll find this working should be working. I had to test this on a Debian derivative box to actually track this one down.

Roy

Follow-Ups:
Re: nonstandard options missing from --dumplease in 6.10.1Mike McCabe
References:
nonstandard options missing from --dumplease in 6.10.1Mike McCabe
Re: nonstandard options missing from --dumplease in 6.10.1JED
Re: nonstandard options missing from --dumplease in 6.10.1Mike McCabe
Re: nonstandard options missing from --dumplease in 6.10.1Roy Marples
Re: nonstandard options missing from --dumplease in 6.10.1Mike McCabe
Archive administrator: postmaster@marples.name