diff -Nru sudo-1.8.16/debian/changelog sudo-1.8.16/debian/changelog --- sudo-1.8.16/debian/changelog 2017-05-29 12:24:16.000000000 +0200 +++ sudo-1.8.16/debian/changelog 2017-06-13 11:00:03.000000000 +0200 @@ -1,3 +1,11 @@ +sudo (1.8.16-0ubuntu3.3) yakkety; urgency=medium + + * Terminate with the same signal as the command (LP: #1686803) + This fixes a regression introduced in sudo 1.8.15 changeset + 10229:153f016db8f1. + + -- Balint Reczey Tue, 13 Jun 2017 11:00:03 +0200 + sudo (1.8.16-0ubuntu3.2) yakkety-security; urgency=medium * SECURITY UPDATE: /proc/self/stat parsing confusion diff -Nru sudo-1.8.16/debian/patches/series sudo-1.8.16/debian/patches/series --- sudo-1.8.16/debian/patches/series 2017-05-23 02:12:37.000000000 +0200 +++ sudo-1.8.16/debian/patches/series 2017-06-13 10:58:04.000000000 +0200 @@ -4,3 +4,4 @@ also_check_sudo_group.diff lp1565567.patch CVE-2017-1000367.patch +terminate-with-commands-signal.patch diff -Nru sudo-1.8.16/debian/patches/terminate-with-commands-signal.patch sudo-1.8.16/debian/patches/terminate-with-commands-signal.patch --- sudo-1.8.16/debian/patches/terminate-with-commands-signal.patch 1970-01-01 01:00:00.000000000 +0100 +++ sudo-1.8.16/debian/patches/terminate-with-commands-signal.patch 2017-06-13 10:58:13.000000000 +0200 @@ -0,0 +1,22 @@ + +# HG changeset patch +# User Todd C. Miller +# Date 1493259454 21600 +# Node ID 50b988d0c97fa0bf0521a01ac2711bc41f81450e +# Parent 93de5e34a6a374cfca7b98619e403d5060ac167d +The fix for Bug #722 contained a typo/thinko that resulted in the +exit status being 0 when a command was killed by a signal other +than SIGINT. This fixes the signal handler setup so sudo will +terminate with the same signal as the command. Bug #784. + +--- a/src/sudo.c ++++ b/src/sudo.c +@@ -324,7 +324,7 @@ + memset(&sa, 0, sizeof(sa)); + sigemptyset(&sa.sa_mask); + sa.sa_handler = SIG_DFL; +- sigaction(SIGINT, &sa, NULL); ++ sigaction(WTERMSIG(status), &sa, NULL); + sudo_debug_exit_int(__func__, __FILE__, __LINE__, sudo_debug_subsys, + WTERMSIG(status) | 128); + kill(getpid(), WTERMSIG(status));