From 5abebe2c7de302d2ce6997345a606862a1daf6ac Mon Sep 17 00:00:00 2001
From: rswindell <>
Date: Tue, 8 Jul 2008 20:55:09 +0000
Subject: [PATCH] Automatically delete the (partially downloaded / zero-byte)
 .QWK packet if FTP_GET indicates download failure.

---
 exec/qnet-ftp.src | 1 +
 1 file changed, 1 insertion(+)

diff --git a/exec/qnet-ftp.src b/exec/qnet-ftp.src
index 68c4f3f135..4847dd01bb 100644
--- a/exec/qnet-ftp.src
+++ b/exec/qnet-ftp.src
@@ -178,6 +178,7 @@ if_true
 	lprintf "QNET-FTP: Downloaded %s successfully" str
 else
 	lprintf "QNET-FTP: %s NOT downloaded socket_error=%d (no new messages?)" str _socket_error
+    remove_file qwk
 	end_if
 
 #################
-- 
GitLab