Bugzilla – Attachment 898 Details for
Bug 950
terminal settings not restored after Ctrl+C during password prompt in scp/sftp
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
possible fix
patch (text/plain), 647 bytes, created by
Pavel Kankovsky
on 2005-05-06 01:08:54 AEST
(
hide
)
Description:
possible fix
Filename:
MIME Type:
Creator:
Pavel Kankovsky
Created:
2005-05-06 01:08:54 AEST
Size:
647 bytes
patch
obsolete
>--- openssh-3.8.1p1/openbsd-compat/readpassphrase.c.ttysanity Mon Nov 24 03:33:34 2003 >+++ openssh-3.8.1p1/openbsd-compat/readpassphrase.c Thu May 5 13:21:36 2005 >@@ -137,8 +137,12 @@ > (void)write(output, "\n", 1); > > /* Restore old terminal settings and signals. */ >- if (memcmp(&term, &oterm, sizeof(term)) != 0) >- (void)tcsetattr(input, _T_FLUSH, &oterm); >+ if (memcmp(&term, &oterm, sizeof(term)) != 0) { >+ int r; >+ do >+ r = tcsetattr(input, _T_FLUSH, &oterm); >+ while (r == -1 && errno == EINTR); >+ } > (void)sigaction(SIGALRM, &savealrm, NULL); > (void)sigaction(SIGHUP, &savehup, NULL); > (void)sigaction(SIGINT, &saveint, NULL);
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 950
:
738
| 898