summaryrefslogtreecommitdiffstats
path: root/net-ftp/gftp/files/gftp-2.0.18-ssh2-read.patch
diff options
context:
space:
mode:
Diffstat (limited to 'net-ftp/gftp/files/gftp-2.0.18-ssh2-read.patch')
-rw-r--r--net-ftp/gftp/files/gftp-2.0.18-ssh2-read.patch13
1 files changed, 13 insertions, 0 deletions
diff --git a/net-ftp/gftp/files/gftp-2.0.18-ssh2-read.patch b/net-ftp/gftp/files/gftp-2.0.18-ssh2-read.patch
new file mode 100644
index 0000000..765741b
--- /dev/null
+++ b/net-ftp/gftp/files/gftp-2.0.18-ssh2-read.patch
@@ -0,0 +1,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));
+
+