[sudo-commits] sudo changeset 10118:167548fd8af2
Todd C. Miller
Todd.Miller at courtesan.com
Wed Jul 8 10:19:30 MDT 2015
changeset: 10118:167548fd8af2 in /media/repos/sudo
details: http://www.sudo.ws/repos/sudo/rev/167548fd8af2
user: Todd C. Miller <Todd.Miller at courtesan.com>
date: Wed Jul 08 10:12:15 2015 -0600
Log Message:
In io_callback() service writes before reads. That way, if both
SUDO_EV_READ and SUDO_EV_WRITE are set and read() returns 0 (EOF)
we don't close the fd before the write() is performed.
If the write() returns EPIPE, ENXIO, EIO or EBADF, clear SUDO_EV_READ
before we close the fd to avoid calling read() on a closed fd.
diffstat:
src/exec_pty.c | 97 +++++++++++++++++++++++++++++----------------------------
1 files changed, 49 insertions(+), 48 deletions(-)
More information about the sudo-commits
mailing list