]> git.decadent.org.uk Git - odhcp6c.git/commit
Fix script environment variable setting for empty lists
authorBen Hutchings <ben@decadent.org.uk>
Fri, 22 Jan 2016 20:13:35 +0000 (20:13 +0000)
committerBen Hutchings <ben@decadent.org.uk>
Thu, 28 Jan 2016 15:34:45 +0000 (15:34 +0000)
commit6326ab374ede4fff1e8019a50d4b9854b8db7625
tree759b87d914c7b5d92b911896a1f4a4614dadd282
parent78bc7d9c835404ad1b5d2eb26de390bd45e26d2a
Fix script environment variable setting for empty lists

When setting an environment variable as a space-separated list, and
the list is empty, we must not delete the '=' before the value.

In practice putenv() is likely to discard the invalid string, leaving
the variable unset, but this is not guaranteed.

Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
src/script.c