changeset 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 f3d499134cf7
children c8e09269c3e1
files ChangeLog lib/sshv2.c
diffstat 2 files changed, 7 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- 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 <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)
+
 	* 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
 
--- 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));