author | Erik Faye-Lund <kusmabite@gmail.com> | |
Wed, 14 Dec 2011 14:07:09 +0000 (15:07 +0100) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Thu, 15 Dec 2011 03:31:03 +0000 (19:31 -0800) | ||
commit | 6ac1b2a3b8bd970e9fc175c42927f00d4d465bbf | |
tree | c833eace46cc906bf659f7f765ff410b0a24fb66 | tree | snapshot |
parent | 57590c72b4d3b02e32732c7d79514c0281d6c2b5 | commit | diff |
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>
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 | diff | blob | history |