]> granicus.if.org Git - sudo/commit
If some, but not all, of the LOGNAME, USER or USERNAME environment
authorTodd C. Miller <Todd.Miller@courtesan.com>
Fri, 25 Sep 2015 17:15:22 +0000 (11:15 -0600)
committerTodd C. Miller <Todd.Miller@courtesan.com>
Fri, 25 Sep 2015 17:15:22 +0000 (11:15 -0600)
commit29a3fcd06c4cc352e829cee15537a17384e7ee04
treec82db39639f1c55c8f4ad46a24000ce2666ac3ae
parent0649a261e70fe6101e270bc018181a51452cac9c
If some, but not all, of the LOGNAME, USER or USERNAME environment
variables have been preserved from the invoking user's environment,
sudo will now use the preserved value to set the remaining variables
instead of using the runas user.  This ensures that if, for example,
only LOGNAME is present in the env_keep list, that sudo will not
set USER and USERNAME to the runas user.
NEWS
plugins/sudoers/env.c