From b50b55e227c7efa674ae138570f1a0331dc48b7d Mon Sep 17 00:00:00 2001 From: Simon Kelley Date: Sun, 9 Aug 2026 17:13:19 +0100 Subject: [PATCH] Allow enviroment variables in dhcp-script to contain '=' An ancient miss-reading of "man setenv" lead to code which strips '=' characters from the contents of enviroment variables set in the dhcp-script. Equals characters are, of course banned in the _name_ of environment variables, not the _value_. --- src/helper.c | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/src/helper.c b/src/helper.c index 30a7197..d1bb42d 100644 --- a/src/helper.c +++ b/src/helper.c @@ -712,13 +712,7 @@ static unsigned char *grab_extradata(unsigned char *buf, unsigned char *end, ch break; if (next && (next != buf)) - { - char *p; - /* No "=" in value */ - if ((p = strchr((char *)buf, '='))) - *p = 0; - val = (char *)buf; - } + val = (char *)buf; } my_setenv(env, val, err);