compat/setenv.c: error if name contains '='
commit6ac1b2a3b8bd970e9fc175c42927f00d4d465bbf
authorErik Faye-Lund <kusmabite@gmail.com>
Wed, 14 Dec 2011 14:07:09 +0000 (14 15:07 +0100)
committerJunio C Hamano <gitster@pobox.com>
Thu, 15 Dec 2011 03:31:03 +0000 (14 19:31 -0800)
treec833eace46cc906bf659f7f765ff410b0a24fb66
parent57590c72b4d3b02e32732c7d79514c0281d6c2b5
compat/setenv.c: error if name contains '='

According to POSIX, setenv should error out with EINVAL if it's
asked to set an environment variable whose name contains an equals
sign. Implement this detail in our compatibility-fallback.

Signed-off-by: Erik Faye-Lund <kusmabite@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
compat/setenv.c