From b30426bccd22e953a73d95a2ca1a2ecc16b1de76 Mon Sep 17 00:00:00 2001 From: James R Date: Sat, 18 Apr 2020 18:47:20 -0700 Subject: [PATCH] Don't strip directory before removing failed http download --- src/d_netfil.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/d_netfil.c b/src/d_netfil.c index 09a89172..05aecce2 100644 --- a/src/d_netfil.c +++ b/src/d_netfil.c @@ -1145,8 +1145,6 @@ void CURLGetFile(void) { if (m->data.result != 0) { - nameonly(curl_realname); - CONS_Printf(M_GetText("Failed to download %s...\n"), curl_realname); curl_curfile->status = FS_FALLBACK; curl_curfile->currentsize = curl_origfilesize; curl_curfile->totalsize = curl_origtotalfilesize; @@ -1154,7 +1152,9 @@ void CURLGetFile(void) fclose(curl_curfile->file); remove(curl_curfile->filename); curl_curfile->file = NULL; - nameonly(curl_curfile->filename); + //nameonly(curl_curfile->filename); + nameonly(curl_realname); + CONS_Printf(M_GetText("Failed to download %s...\n"), curl_realname); } else { @@ -1181,4 +1181,4 @@ void CURLGetFile(void) curl_global_cleanup(); } } -#endif \ No newline at end of file +#endif