Code

Fix cmd_run overwriting the environment
authorThomas Guyot-Sionnest <dermoth@aei.ca>
Fri, 2 Jul 2010 16:55:19 +0000 (12:55 -0400)
committerThomas Guyot-Sionnest <dermoth@aei.ca>
Fri, 2 Jul 2010 16:55:19 +0000 (12:55 -0400)
commitcf2bcf6c7afa8eb7a54e01f98a9998a7e1ac0852
tree3739ed79238c65567ad1001a4f80856af652f660
parent6b6051606175d870bb45bbe67866c1643d4d964a
Fix cmd_run overwriting the environment

Some commands need the environment to function properly. One such
example is check_ssh and check_by_ssh when a SOCKS proxy is required.

This patch use setenv and extern char **environ to alter and pass the
new environment to the child process Those modules have been added to
Gnulib for portability.
NEWS
lib/utils_cmd.c