/[gentoo-x86]/net-misc/ssh/files/patch-readline.diff
Gentoo

Contents of /net-misc/ssh/files/patch-readline.diff

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (hide annotations) (download) (as text)
Thu Nov 20 04:48:53 2008 UTC (11 years, 4 months ago) by darkside
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +0 -0 lines
File MIME type: text/x-diff
FILE REMOVED
remove from tree by treecleaners, masked for years 'pending removal' bug #139969

1 humpback 1.1 diff -uNr ssh-3.2.9.1.orig/lib/sshreadline/sshreadline.c ssh-3.2.9.1/lib/sshreadline/sshreadline.c
2     --- ssh-3.2.9.1.orig/lib/sshreadline/sshreadline.c 2003-12-03 08:17:20.000000000 -0500
3     +++ ssh-3.2.9.1/lib/sshreadline/sshreadline.c 2004-02-02 11:18:46.000000000 -0500
4     @@ -500,8 +500,9 @@
5     new_term.c_lflag &= ~(ECHO | ICANON);
6     new_term.c_cc[VMIN] = 1;
7     new_term.c_cc[VTIME] = 1;
8     - if (tcsetattr(fd, TCSAFLUSH, &new_term) < 0)
9     + fast: if (tcsetattr(fd, TCSAFLUSH, &new_term) < 0)
10     {
11     + if (EINTR == errno) goto fast;
12     ssh_warning("tcsetattr failed in ssh_rl_set_tty_modes_for_fd: "
13     "fd %d: %.200s", fd, strerror(errno));
14     return -1;
15     @@ -561,8 +562,9 @@
16     {
17     fcntl(fd, F_SETFL, fcntl_flags);
18    
19     - if (tcsetattr(fd, TCSAFLUSH, saved_tio) < 0)
20     + fast1: if (tcsetattr(fd, TCSAFLUSH, saved_tio) < 0)
21     {
22     + if (EINTR == errno) goto fast1;
23     ssh_warning("tcsetattr failed in ssh_rl_restore_tty_modes_for_fd: "
24     "fd %d: %.200s", fd, strerror(errno));
25     return -1;
26    
27     --

  ViewVC Help
Powered by ViewVC 1.1.20