summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorportix <portix@gmx.net>2013-05-22 09:58:46 +0200
committerportix <portix@gmx.net>2013-05-22 09:58:46 +0200
commit48a3718d087dcf72bf913f9489214c3db217691d (patch)
tree876bb8c0a1086b487e2e479aabd85c109007627e
parent1c4df5b523d23ad4b1c525de10621fb8fedb677e (diff)
downloaddwb-48a3718d087dcf72bf913f9489214c3db217691d.zip
exar: Remove tmpfile if file deletion fails
-rw-r--r--exar/exar.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/exar/exar.c b/exar/exar.c
index c2b5ef09..056f4360 100644
--- a/exar/exar.c
+++ b/exar/exar.c
@@ -612,6 +612,7 @@ exar_delete(const char *archive, const char *file)
}
}
}
+finish:
if (status == EE_EOF)
{
LOG(2, "Copying %s to %s\n", tmp_file, archive);
@@ -625,7 +626,6 @@ exar_delete(const char *archive, const char *file)
LOG(1, "An error occured, removing temporary file\n");
unlink(tmp_file);
}
-finish:
close_file(f, archive);
close_file(ftmp, tmp_file);
return result;