From: Todd C. Miller Date: Mon, 2 Mar 2015 15:49:04 +0000 (-0700) Subject: Fix cut & pasto that prevented the SIGPIPE handler from being X-Git-Tag: SUDO_1_8_13^2~23 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=b78a985bf06ab2f8bf32acb8ec0aa61e5bf101bc;p=sudo Fix cut & pasto that prevented the SIGPIPE handler from being restored before returning from tgetpass(). From mancha --- diff --git a/src/tgetpass.c b/src/tgetpass.c index f29de79d1..373e1a527 100644 --- a/src/tgetpass.c +++ b/src/tgetpass.c @@ -174,7 +174,7 @@ restore: (void) sigaction(SIGTSTP, &savetstp, NULL); (void) sigaction(SIGTTIN, &savettin, NULL); (void) sigaction(SIGTTOU, &savettou, NULL); - (void) sigaction(SIGTTOU, &savepipe, NULL); + (void) sigaction(SIGPIPE, &savepipe, NULL); if (input != STDIN_FILENO) (void) close(input);