[sudo-cvs] CVS commit: sudo

Todd C. Miller Todd.Miller at courtesan.com
Sun Jul 29 16:09:18 EDT 2007

Module Name:	sudo
Committed By:	millert
Date:		Sun Jul 29 20:09:18 UTC 2007

Modified Files:
	sudo: env.c

Log Message:
Don't init the private environment in rebuild_env() since it may
have already been done implicitly sudo_setenv/sudo_unsetenv.

Multiply length by sizeof(char *) in memcpy/memmove when copying
the environment so we copy the full thing.

Add missing set of parens so we deref the right pointer in
sudo_unsetenv when searching for a matching variable.

To generate a diff of this commit:
cvs rdiff -r1.81 -r1.82 sudo/env.c

More information about the sudo-commits mailing list