mirror of
http://thekelleys.org.uk/git/dnsmasq.git
synced 2026-11-28 21:08:35 +00:00
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_.
This commit is contained in:
1 file changed
+1
-7
+1
-7
@@ -712,13 +712,7 @@ static unsigned char *grab_extradata(unsigned char *buf, unsigned char *end, ch
|
|||||||
break;
|
break;
|
||||||
|
|
||||||
if (next && (next != buf))
|
if (next && (next != buf))
|
||||||
{
|
val = (char *)buf;
|
||||||
char *p;
|
|
||||||
/* No "=" in value */
|
|
||||||
if ((p = strchr((char *)buf, '=')))
|
|
||||||
*p = 0;
|
|
||||||
val = (char *)buf;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
my_setenv(env, val, err);
|
my_setenv(env, val, err);
|
||||||
|
|||||||
Reference in new issue
Block a user