[sudo-commits] sudo changeset 11892:a9ffaa8a8a55
Todd C. Miller
Todd.Miller at sudo.ws
Sat Nov 2 10:58:24 MDT 2019
changeset: 11892:a9ffaa8a8a55 in /raid/repos/sudo
details: https://www.sudo.ws/repos/sudo/rev/a9ffaa8a8a55
user: Todd C. Miller <Todd.Miller at sudo.ws>
date: Sat Nov 02 10:55:50 2019 -0600
Log Message:
Use dup3() instead of dup2().
This is less error prone since dup3() returns an error if old == new.
Sudo guarantees that fds 0-2 are already open.
diffstat:
plugins/sudoers/logging.c | 8 ++------
src/exec_monitor.c | 39 ++++++++++++---------------------------
src/selinux.c | 19 +++++++++++++++++--
src/tgetpass.c | 15 ++++-----------
4 files changed, 35 insertions(+), 46 deletions(-)
More information about the sudo-commits
mailing list