This is the mail archive of the
glibc-bugs@sources.redhat.com
mailing list for the glibc project.
[Bug libc/283] POSIX.1-2001: setenv called with envname containing = should fail
- From: "a dot josey at opengroup dot org" <sourceware-bugzilla at sources dot redhat dot com>
- To: glibc-bugs at sources dot redhat dot com
- Date: 23 Jul 2004 13:28:37 -0000
- Subject: [Bug libc/283] POSIX.1-2001: setenv called with envname containing = should fail
- References: <20040723132126.283.a.josey@opengroup.org>
- Reply-to: sourceware-bugzilla at sources dot redhat dot com
------- Additional Comments From a dot josey at opengroup dot org 2004-07-23 13:28 -------
Similarly calling setenv() with an envname set to an empty string succeeds when
it is expected to fail (return -1 and set errno to EINVAL)
setenv("", "value", 0);
setenv("", "value", 1)
When called with the first argument a null pointer, it should also fail, but
instead segment faults.
--
http://sources.redhat.com/bugzilla/show_bug.cgi?id=283
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.