interrupted. [reported by Booker Bense]
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12993
dc483132-0cff-0310-8789-
dd5450dbe970
+2001-02-05 Tom Yu <tlyu@mit.edu>
+
+ * prompter.c (krb5_prompter_posix): Fix up terminal modes if we're
+ interrupted. [reported by Booker Bense]
+
2000-12-18 Ken Raeburn <raeburn@mit.edu>
* Makefile.in (LCLINT, LCLINTOPTS): New variables.
cleanup:
(void) signal(SIGINT, ointrfunc);
+#ifndef ECHO_PASSWORD
+ if (i < num_prompts) {
+ if (prompts[i].hidden) {
+ (void)putchar('\n');
+ if (isatty(fd) == 1) {
+ if ((tcsetattr(fd, TCSANOW, &save_control) == -1
+ && errcode == 0))
+ return errno;
+ }
+ }
+ }
+#endif
return(errcode);
}
#else /* MSDOS */