]> andersk Git - openssh.git/blobdiff - openbsd-compat/readpassphrase.c
- (dtucker) [openbsd-compat/readpassphrase.c] Resync against OpenBSD's r1.18: ...
[openssh.git] / openbsd-compat / readpassphrase.c
index 95e26dcd45f9b1ff91dff7cd2c0b8911f9b7c124..16e07e8166ce9ee50a3b32804c5a48f95b11bc9e 100644 (file)
 #include <termios.h>
 #include <signal.h>
 #include <ctype.h>
+#include <fcntl.h>
 #include <readpassphrase.h>
+#include <errno.h>
+#include <string.h>
+#include <unistd.h>
 
 #ifdef TCSASOFT
 # define _T_FLUSH      (TCSAFLUSH|TCSASOFT)
@@ -148,6 +152,7 @@ restart:
        (void)sigaction(SIGTERM, &saveterm, NULL);
        (void)sigaction(SIGTSTP, &savetstp, NULL);
        (void)sigaction(SIGTTIN, &savettin, NULL);
+       (void)sigaction(SIGTTOU, &savettou, NULL);
        if (input != STDIN_FILENO)
                (void)close(input);
 
@@ -168,7 +173,7 @@ restart:
        errno = save_errno;
        return(nr == -1 ? NULL : buf);
 }
-  
+
 #if 0
 char *
 getpass(const char *prompt)
This page took 0.264043 seconds and 4 git commands to generate.