makes it a bit easier to get back to the "real" user's home dir who started the sudo.
# launch sudo with just the variables we want to reach the other side.
local varmods=
-# varmods+="PATH= "
+ varmods+="OLD_HOME=$HOME "
if [ ! -z "$IMPORTED_XAUTH" ]; then varmods+="IMPORTED_XAUTH=$IMPORTED_XAUTH "; fi
- if [ ! -z "$SSH_AUTH_SOCK" ]; then varmods+="SSH_AUTH_SOCK=$SSH_AUTH_SOCK"; fi
+ if [ ! -z "$SSH_AUTH_SOCK" ]; then varmods+="SSH_AUTH_SOCK=$SSH_AUTH_SOCK "; fi
/usr/bin/sudo $varmods "$@"
retval=$?