Stathis Kamperis <ekamperi@gmail.com> added the comment:
I am going to push this tomorrow or the day after, unless someone objects.
Just for the record, I have filed a PR in NetBSD bug database as well and t=
hey
fixed it differently:
..=2E.
if (argc !=3D 1)
usage();
if (strchr(*argv, '=3D') !=3D NULL)
errx(1, "Invalid environment variable %s", *argv);
len =3D strlen(*argv);
for (ep =3D environ; *ep; ep++)
..=2E.
POSIX says that env vars shouldn't contain an '=3D' sign and functions as
setenv(3) fail with EINVAL if the supplied name contains an equal sign.
Cheers,
Stathis
_____________________________________________________
DragonFly issue tracker <bugs@lists.dragonflybsd.org>
<http://bugs.dragonflybsd.org/issue1341>
_____________________________________________________