* src/env.c (main): When invoked with no arguments (i.e. when printing
commitd7226387a9fb07ec3de3913f8128a31ba95deeb2
authorJim Meyering <jim@meyering.net>
Tue, 20 Feb 2007 16:23:51 +0000 (20 17:23 +0100)
committerJim Meyering <jim@meyering.net>
Tue, 20 Feb 2007 16:23:51 +0000 (20 17:23 +0100)
tree5d495cae4b86d5bf0be1fb497e12b357ab456014
parentdd99d05b4a24966f22321793bfc45681652eceef
* src/env.c (main): When invoked with no arguments (i.e. when printing
the environment), use a local variable to iterate through the global
"environ" array, rather than "environ" itself.  This is solely to
avoid changing the environment for an LD_PRELOAD-substituted "puts"
or "exit" function.  Tiny patch by Harvey Eneman.  See
<http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/9735>.
* THANKS: Update.
ChangeLog
THANKS
src/env.c