# HG changeset patch # User masneyb # Date 1147627616 0 # Node ID 1b28a63d125a8259119b8c4aba85a00333e4d80f # Parent f3d499134cf7de9633717ecb41e90a98d64e9c99 2006-5-14 Brian Masney * 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 ) (closes #301106) diff -r f3d499134cf7 -r 1b28a63d125a ChangeLog --- a/ChangeLog Sun May 14 17:18:14 2006 +0000 +++ b/ChangeLog Sun May 14 17:26:56 2006 +0000 @@ -1,4 +1,9 @@ 2006-5-14 Brian Masney + * 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 ) (closes #301106) + * docs/sample.gftp/bookmarks - added Mandriva bookmarks (from mpol@gmx.net) (closes #322942) @@ -3355,7 +3360,7 @@ * cvsclean - added this script - * *.[ch] - added $Id: ChangeLog,v 1.425 2006/05/14 17:18:12 masneyb Exp $ tags + * *.[ch] - added $Id: ChangeLog,v 1.426 2006/05/14 17:26:56 masneyb Exp $ tags * debian/* - updated files from Debian maintainer diff -r f3d499134cf7 -r 1b28a63d125a lib/sshv2.c --- 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));