]> 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 15:49:04 +0000 (08:49 -0700)
committerTodd C. Miller <Todd.Miller@courtesan.com>
Mon, 2 Mar 2015 15:49:04 +0000 (08:49 -0700)
restored before returning from tgetpass().  From mancha

src/tgetpass.c

index f29de79d17c18da9fcb175d665ce73d2781e587f..373e1a527acbd4cde7e9cadb3e1ca53a2c5f207b 100644 (file)
@@ -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);