Re: The real culprit
Scrub the environment, never pass variables to programs that need them, such as sudo.
Isn't it wonderful to have to go back to logging in as root?
The solution is, don't break a good security system to pander to lusers and perform security evaluations when making any change, rather than garbage code being introduced into production code.
Well, there are two upsides for me. One, I never upgraded to that tanglecoded OS and my MacBook Pro is currently dead, after imbibing excessively of wine.