summaryrefslogtreecommitdiffstats
path: root/net-ftp/gftp/files/gftp-2.0.18-ssh2-read.patch
blob: 765741be7b023a43717814ed0c1c0d2e1787a238 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
--- gftp-2.0.18.orig/lib/sshv2.c
+++ gftp-2.0.18/lib/sshv2.c
@@ -1841,7 +1841,7 @@
 {
   int ret;
 
-  if ((ret = sshv2_open_file (request, file, startsize, SSH_FXP_OPEN)) < 0)
+  if ((ret = sshv2_open_file (request, file, startsize, SSH_FXF_READ)) < 0)
     return (ret);
 
   return (sshv2_get_file_size (request, file));