This is the mail archive of the
libc-alpha@sources.redhat.com
mailing list for the glibc project.
Re: setenv(), unsetenv() and '=' in name argument
- From: "Michael T Kerrisk" <mtk-lists at gmx dot net>
- To: "Michael T Kerrisk" <mtk-lists at gmx dot net>
- Cc: libc-alpha at sources dot redhat dot com
- Date: Wed, 9 Jun 2004 16:53:16 +0200 (MEST)
- Subject: Re: setenv(), unsetenv() and '=' in name argument
- References: <9566.1086791944@www44.gmx.net>
> The SUSv3 specification for setenv() and unsetenv() stipulates that
> the name argument to setenv() and unsetenv() may not contain an '='
> character -- the error EINVAL should result. However, as currently
> implemented glibc permits an '=' for name in both of these functions.
Bother! Part of that sentence was rubbish! glibc's unsetenv()
correctly fails if name contains '='; however, setenv() is indeed
broken;
Cheers,
Michael
--
Michael Kerrisk
mtk-lists@gmx.net
+++ Jetzt WLAN-Router für alle DSL-Einsteiger und Wechsler +++
GMX DSL-Powertarife zudem 3 Monate gratis* http://www.gmx.net/dsl