# HG changeset patch # User masneyb # Date 1104507181 0 # Node ID cb8ba8124e0e52c1e93f08fa4a823377cc071d59 # Parent 5f2808c65e4673ee8aede16535a490dc64839fc1 2004-12-31 Brian Masney * 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 diff -r 5f2808c65e46 -r cb8ba8124e0e ChangeLog --- 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 + * 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 diff -r 5f2808c65e46 -r cb8ba8124e0e src/uicommon/gftpui.c --- 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",