changeset 652:cb8ba8124e0e

2004-12-31 Brian Masney <masneyb@gftp.org> * src/uicommon/gftpui.c (gftpui_common_transfer_files) - check the return status of gftp_end_transfer() to see if there was an error closing the remote file
author masneyb
date Fri, 31 Dec 2004 15:33:01 +0000
parents 5f2808c65e46
children 07dc89f95076
files ChangeLog src/uicommon/gftpui.c
diffstat 2 files changed, 19 insertions(+), 6 deletions(-) [+]
line wrap: on
line diff
--- a/ChangeLog	Fri Dec 31 14:25:28 2004 +0000
+++ b/ChangeLog	Fri Dec 31 15:33:01 2004 +0000
@@ -1,4 +1,8 @@
 2004-12-31 Brian Masney <masneyb@gftp.org>
+	* src/uicommon/gftpui.c (gftpui_common_transfer_files) - check the
+	return status of gftp_end_transfer() to see if there was an error
+	closing the remote file
+	
 	* src/uicommon/gftpui.c - added dir and ldir commands to the command 
 	line interface
 
@@ -3176,7 +3180,7 @@
 
 	* cvsclean - added this script
 
-	* *.[ch] - added $Id: ChangeLog,v 1.385 2004/12/31 14:25:28 masneyb Exp $ tags
+	* *.[ch] - added $Id: ChangeLog,v 1.386 2004/12/31 15:33:01 masneyb Exp $ tags
 
 	* debian/* - updated files from Debian maintainer
 
--- a/src/uicommon/gftpui.c	Fri Dec 31 14:25:28 2004 +0000
+++ b/src/uicommon/gftpui.c	Fri Dec 31 15:33:01 2004 +0000
@@ -1459,12 +1459,21 @@
 
               break;
             }
-          gftp_end_transfer (tdata->toreq);
 
-          tdata->fromreq->logging_function (gftp_logging_misc,
-                         tdata->fromreq,
-                         _("Successfully transferred %s at %.2f KB/s\n"),
-                         curfle->file, tdata->kbs);
+          if (gftp_end_transfer (tdata->toreq) == 0)
+            {
+              tdata->fromreq->logging_function (gftp_logging_misc,
+                             tdata->fromreq,
+                             _("Successfully transferred %s at %.2f KB/s\n"),
+                             curfle->file, tdata->kbs);
+            }
+          else
+            {
+              tdata->fromreq->logging_function (gftp_logging_error,
+                             tdata->fromreq,
+                             _("There was an error transfering the file %s"),
+                             curfle->file);
+            }
         }
 
       gftp_lookup_request_option (tdata->fromreq, "preserve_permissions",