[sudo-commits] sudo changeset 12805:dcfce8a11282
Todd C. Miller
Todd.Miller at sudo.ws
Mon Jan 11 05:32:15 MST 2021
changeset: 12805:dcfce8a11282 in /raid/repos/sudo
details: https://www.sudo.ws/repos/sudo/rev/dcfce8a11282
user: Todd C. Miller <Todd.Miller at sudo.ws>
date: Wed Jan 06 13:01:09 2021 -0700
Log Message:
Rename run_cred -> cur_cred and stash existing creds in set_tmpdir().
For sudo_edit_open() et al what we need is a copy of the current
cred to restore after dir_is_writable() changes to the user cred.
diffstat:
src/edit_open.c | 28 ++++++++++++++--------------
src/sesh.c | 3 +++
src/sudo_edit.c | 45 +++++++++++++++++++++++++++++++++++++--------
src/sudo_edit.h | 6 +++---
4 files changed, 57 insertions(+), 25 deletions(-)
More information about the sudo-commits
mailing list