Mercurial > gftp.yaz
diff lib/sshv2.c @ 746:1b28a63d125a
2006-5-14 Brian Masney <masneyb@gftp.org>
* lib/sshv2.c (sshv2_get_file) - use SSH_FXF_READ instead of
SSH_FXP_OPEN to open the file. This ensures the file can be downloaded
even if the user doesn't have write access to the file.
(from Owen Roberts <owen.roberts@sun.com>) (closes #301106)
author | masneyb |
---|---|
date | Sun, 14 May 2006 17:26:56 +0000 |
parents | f6e2ec8faf56 |
children | c8e09269c3e1 |
line wrap: on
line diff
--- a/lib/sshv2.c Sun May 14 17:18:14 2006 +0000 +++ b/lib/sshv2.c Sun May 14 17:26:56 2006 +0000 @@ -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));