For putenv(3), return an error if string starts with a '=' character.
authormillert <millert@openbsd.org>
Mon, 8 Aug 2022 22:40:03 +0000 (22:40 +0000)
committermillert <millert@openbsd.org>
Mon, 8 Aug 2022 22:40:03 +0000 (22:40 +0000)
commit7fd658f2c3410da8e3bc230ed0a8cb1d8dc863ef
treeb7db86c9447d21960048db75284ad03bf71545ec
parentf3c231593a43f1549a9e81204b8aa2a3d944d18b
For putenv(3), return an error if string starts with a '=' character.
Both FreeBSD and NetBSD have this behavior.  OK deraadt@
lib/libc/stdlib/getenv.3
lib/libc/stdlib/setenv.c