Gentoo Archives: gentoo-commits

From: "Markos Chandras (hwoarang)" <hwoarang@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in net-misc/sshpass/files: sshpass-1.04-ssh5.6.patch
Date: Thu, 26 May 2011 13:55:25
Message-Id: 20110526135514.DEA6B20057@flycatcher.gentoo.org
1 hwoarang 11/05/26 13:55:14
2
3 Added: sshpass-1.04-ssh5.6.patch
4 Log:
5 Revbump with openssh-5.6 patch thanks to Silvestrini Gianpaolo <bebopt@×××××.com>. Bug #354897
6
7 (Portage version: 2.1.9.49/cvs/Linux x86_64)
8
9 Revision Changes Path
10 1.1 net-misc/sshpass/files/sshpass-1.04-ssh5.6.patch
11
12 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/sshpass/files/sshpass-1.04-ssh5.6.patch?rev=1.1&view=markup
13 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/sshpass/files/sshpass-1.04-ssh5.6.patch?rev=1.1&content-type=text/plain
14
15 Index: sshpass-1.04-ssh5.6.patch
16 ===================================================================
17 --- main.c.orig 2011-02-01 10:00:45.571260395 +0000
18 +++ main.c 2011-02-01 11:14:48.571421997 +0000
19 @@ -311,6 +311,11 @@
20
21 int numread=read(fd, buffer, sizeof(buffer) );
22
23 + // New versions of ssh probably set the terminal to non-blocking, so we get lots of unused or empty responses.
24 + if( numread<0 && errno ==5 ) {
25 + return 0;
26 + }
27 +
28 if( numread<0 ) {
29 // Comment no. 3.1416
30 // Select is doing a horrid job of waking us up at the right time - it wakes up with "read ready" when the slave