Mercurial > gftp.yaz
changeset 559:b497d05cb591
2004-9-22 Brian Masney <masneyb@gftp.org>
* src/gtk/transfer.c (check_done_process) - if the process returned an
error code, then remove the file and don't prompt the user to upload the
file if it was changed
author | masneyb |
---|---|
date | Wed, 22 Sep 2004 23:38:53 +0000 |
parents | 2c72056d8af2 |
children | 1ce11a3d9557 |
files | ChangeLog src/gtk/transfer.c |
diffstat | 2 files changed, 12 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/ChangeLog Sun Sep 19 00:43:54 2004 +0000 +++ b/ChangeLog Wed Sep 22 23:38:53 2004 +0000 @@ -1,3 +1,8 @@ +2004-9-22 Brian Masney <masneyb@gftp.org> + * src/gtk/transfer.c (check_done_process) - if the process returned an + error code, then remove the file and don't prompt the user to upload the + file if it was changed + 2004-9-17 Brian Masney <masneyb@gftp.org> * src/gtk/transfer.c (check_done_process) - make sure the return code from the process is reported correctly to the user @@ -2837,7 +2842,7 @@ * cvsclean - added this script - * *.[ch] - added $Id: ChangeLog,v 1.323 2004/09/18 00:42:01 masneyb Exp $ tags + * *.[ch] - added $Id: ChangeLog,v 1.324 2004/09/22 23:38:53 masneyb Exp $ tags * debian/* - updated files from Debian maintainer
--- a/src/gtk/transfer.c Sun Sep 19 00:43:54 2004 +0000 +++ b/src/gtk/transfer.c Wed Sep 22 23:38:53 2004 +0000 @@ -346,8 +346,12 @@ { procret = WEXITSTATUS (ret); if (procret != 0) - ftp_log (gftp_logging_error, NULL, - _("Error: Child %d returned %d\n"), pid, procret); + { + ftp_log (gftp_logging_error, NULL, + _("Error: Child %d returned %d\n"), pid, procret); + remove_file (ve_proc->filename); + continue; + } else ftp_log (gftp_logging_misc, NULL, _("Child %d returned successfully\n"), pid);