]> granicus.if.org Git - sudo/commitdiff
Fix cut & pasto that prevented the SIGPIPE handler from being
authorTodd C. Miller <Todd.Miller@courtesan.com>
Mon, 2 Mar 2015 16:36:32 +0000 (09:36 -0700)
committerTodd C. Miller <Todd.Miller@courtesan.com>
Mon, 2 Mar 2015 16:36:32 +0000 (09:36 -0700)
restored before returning from tgetpass().  From mancha

--HG--
branch : 1.7

tgetpass.c

index 446ce10bd5e0420b97ca081ddd3818ce8d2bee14..f9876422d7d9c19af029450d097b987904763327 100644 (file)
@@ -155,7 +155,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);