From: | "Pacho Ramos (pacho)" <pacho@g.o> |
---|---|
To: | gentoo-commits@l.g.o |
Subject: | [gentoo-commits] gentoo-x86 commit in gnome-base/gvfs/files: gvfs-1.6.4-sftp-timeout.patch |
Date: | Tue, 05 Oct 2010 08:49:18 |
Message-Id: | 20101005084912.26D2C20051@flycatcher.gentoo.org |
1 | pacho 10/10/05 08:49:12 |
2 | |
3 | Added: gvfs-1.6.4-sftp-timeout.patch |
4 | Log: |
5 | Revision bump to fix timeouts with sftp due bug #339695 (reported by onip) using upstream patch. Remove broken version. |
6 | (Portage version: 2.1.8.3/cvs/Linux x86_64) |
7 | |
8 | Revision Changes Path |
9 | 1.1 gnome-base/gvfs/files/gvfs-1.6.4-sftp-timeout.patch |
10 | |
11 | file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/gnome-base/gvfs/files/gvfs-1.6.4-sftp-timeout.patch?rev=1.1&view=markup |
12 | plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/gnome-base/gvfs/files/gvfs-1.6.4-sftp-timeout.patch?rev=1.1&content-type=text/plain |
13 | |
14 | Index: gvfs-1.6.4-sftp-timeout.patch |
15 | =================================================================== |
16 | From 4033907045abcf498686c1b34be7b0160260088d Mon Sep 17 00:00:00 2001 |
17 | From: Andreas Henriksson <andreas@×××××.se> |
18 | Date: Sat, 02 Oct 2010 12:51:54 +0000 |
19 | Subject: sftp: fix poll() timeout. |
20 | |
21 | When switching from select() to poll() in commit |
22 | "sftp: Use poll() to cope with openssh-5.6 changes" (c6be45c8934) |
23 | the difference in seconds vs milliseconds for select/poll timeout |
24 | argument was missed. |
25 | |
26 | SFTP_READ_TIMEOUT is defined in seconds, so multiply it with 1000 |
27 | when using it with poll(). |
28 | |
29 | https://bugzilla.gnome.org/show_bug.cgi?id=631169 |
30 | --- |
31 | diff --git a/daemon/gvfsbackendsftp.c b/daemon/gvfsbackendsftp.c |
32 | index 9fecf6a..f6b7785 100644 |
33 | --- a/daemon/gvfsbackendsftp.c |
34 | +++ b/daemon/gvfsbackendsftp.c |
35 | @@ -869,7 +869,7 @@ handle_login (GVfsBackend *backend, |
36 | fds[1].fd = prompt_fd; |
37 | fds[1].events = POLLIN; |
38 | |
39 | - ret = poll(fds, 2, SFTP_READ_TIMEOUT); |
40 | + ret = poll(fds, 2, SFTP_READ_TIMEOUT * 1000); |
41 | |
42 | if (ret <= 0) |
43 | { |
44 | -- |
45 | cgit v0.8.3.1 |