From b78a985bf06ab2f8bf32acb8ec0aa61e5bf101bc Mon Sep 17 00:00:00 2001 From: "Todd C. Miller" Date: Mon, 2 Mar 2015 08:49:04 -0700 Subject: [PATCH] Fix cut & pasto that prevented the SIGPIPE handler from being restored before returning from tgetpass(). From mancha --- src/tgetpass.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- 2.40.0