# HG changeset patch # User masneyb # Date 1095896333 0 # Node ID b497d05cb5910f3b9bc66a18a5f2a363cd0c0d48 # Parent 2c72056d8af2500efab60c60c7323a7a6f64e206 2004-9-22 Brian Masney * 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 diff -r 2c72056d8af2 -r b497d05cb591 ChangeLog --- 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 + * 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 * 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 diff -r 2c72056d8af2 -r b497d05cb591 src/gtk/transfer.c --- 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);