This is the mail archive of the libc-alpha@sources.redhat.com mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: setenv(), unsetenv() and '=' in name argument


> 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]