[sudo-commits] sudo changeset 10995:62515bd6c64c
Todd C. Miller
Todd.Miller at courtesan.com
Mon Jun 5 07:12:59 MDT 2017
changeset: 10995:62515bd6c64c in /raid/repos/sudo
details: https://www.sudo.ws/repos/sudo/rev/62515bd6c64c
user: Todd C. Miller <Todd.Miller at courtesan.com>
date: Mon Jun 05 07:11:09 2017 -0600
Log Message:
sudo_edit() must return a wait status but if there is an error, or
even if no changes were made to the file, it was returning 1 instead
which would be interpreted as the command having received SIGHUP.
Use the W_EXITCODE() to construct a proper wait status in the error
case too.
diffstat:
src/sudo_edit.c | 11 +++++++----
1 files changed, 7 insertions(+), 4 deletions(-)
More information about the sudo-commits
mailing list