env: reject bogus -u arguments
authorEric Blake <ebb9@byu.net>
Mon, 26 Oct 2009 13:10:51 +0000 (07:10 -0600)
committerEric Blake <ebb9@byu.net>
Tue, 27 Oct 2009 03:30:30 +0000 (21:30 -0600)
commit243f1b1c71136171a4da635a84f8e32ba3eb3c94
treeb3322fcf26a44e5b3f39479d89f58a34c4eab221
parentc6900474ef4e0acc02bf5ff41c933afeef4aae09
env: reject bogus -u arguments

* src/env.c (main): Use unsetenv rather than putenv to remove
items from environ, and check for failure.
* bootstrap.conf (gnulib_modules): Add unsetenv.
* tests/misc/env: Test this.
* NEWS: Document it.
NEWS
bootstrap.conf
src/env.c
tests/misc/env