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));