gftp: Add more gentoo patches for gftp 2.0.18
[openembedded.git] / recipes / gftp / gftp / gftp-2.0.18-ssh2-read.patch
1 --- gftp-2.0.18.orig/lib/sshv2.c
2 +++ gftp-2.0.18/lib/sshv2.c
3 @@ -1841,7 +1841,7 @@
4  {
5    int ret;
6  
7 -  if ((ret = sshv2_open_file (request, file, startsize, SSH_FXP_OPEN)) < 0)
8 +  if ((ret = sshv2_open_file (request, file, startsize, SSH_FXF_READ)) < 0)
9      return (ret);
10  
11    return (sshv2_get_file_size (request, file));
12
13