From 01703a2851b874d08ed600b7f2a7904e10c38d6a Mon Sep 17 00:00:00 2001 From: Guillaume Cottenceau Date: Tue, 20 Jan 2004 11:12:38 +0000 Subject: *** empty log message *** --- mdk-stage1/mar/mar-extract-only.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'mdk-stage1') diff --git a/mdk-stage1/mar/mar-extract-only.c b/mdk-stage1/mar/mar-extract-only.c index 39f3d0ef5..b69e3101d 100644 --- a/mdk-stage1/mar/mar-extract-only.c +++ b/mdk-stage1/mar/mar-extract-only.c @@ -181,6 +181,8 @@ mar_extract_file(char *mar_filename, char *filename_to_extract, char *dest_dir) int to_read = i > sizeof(garb_buf) ? sizeof(garb_buf) : i; if (BZ2_bzread(s.mar_zfile, garb_buf, to_read) != to_read) { log_message("MAR: unexpected EOF in stream"); + close(fd); + unlink(dest_file); return -1; } i -= to_read; -- cgit v1.2.1