diff src/gtk/transfer.c @ 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 017b1108305b
children 89216879202f
line wrap: on
line diff
--- 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);