]> granicus.if.org Git - sudo/commit
rebuild_env() and insert_env_vars() no longer return environment pointer,
authorTodd C. Miller <Todd.Miller@courtesan.com>
Wed, 18 Jul 2007 16:57:31 +0000 (16:57 +0000)
committerTodd C. Miller <Todd.Miller@courtesan.com>
Wed, 18 Jul 2007 16:57:31 +0000 (16:57 +0000)
commit8f0f4743fd24d983bbfc39a857967cf24e25ce82
tree6228a84d20d89ffb88a5663aa787c183ada85129
parent8fa2eb187e85fad18b7a1402da44ba04f96dec5c
rebuild_env() and insert_env_vars() no longer return environment pointer,
they set environ directly.

No longer need to pass around an envp pointer since we just operate
on environ now.

Add dosync argument to insert_env() that indicates whether it should
reset environ when realloc()ing env.envp.

Use an initial size of 128 for the environment.
env.c
sudo.c