summaryrefslogtreecommitdiff
path: root/openbsd-compat/readpassphrase.c
diff options
context:
space:
mode:
authorDamien Miller <djm@mindrot.org>2002-02-13 16:43:52 +1100
committerDamien Miller <djm@mindrot.org>2002-02-13 16:43:52 +1100
commit89a1b9f908dc75ba2176d716af8e8abc8f9a4742 (patch)
treecc8d172444f5da60b39c9e8bb7eee903c457faa0 /openbsd-compat/readpassphrase.c
parent8e3bdca1da7d30542e9028f35f2a1cef052c85e4 (diff)
unbreak
Diffstat (limited to 'openbsd-compat/readpassphrase.c')
-rw-r--r--openbsd-compat/readpassphrase.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/openbsd-compat/readpassphrase.c b/openbsd-compat/readpassphrase.c
index 4e63b618..4d25eadb 100644
--- a/openbsd-compat/readpassphrase.c
+++ b/openbsd-compat/readpassphrase.c
@@ -136,7 +136,7 @@ restart:
/* Restore old terminal settings and signals. */
if (memcmp(&term, &oterm, sizeof(term)) != 0)
- (void)tcsetattr(input, _T_FLUSH, &term);
+ (void)tcsetattr(input, _T_FLUSH, &oterm);
(void)sigaction(SIGINT, &saveint, NULL);
(void)sigaction(SIGHUP, &savehup, NULL);
(void)sigaction(SIGQUIT, &savequit, NULL);
@@ -179,6 +179,6 @@ getpass(const char *prompt)
static void handler(int s)
{
-
+fprintf(stderr, "COPPED A SGNAL\n");
signo = s;
}