diff options
author | Guillaume Cottenceau <gc@mandriva.com> | 2004-01-20 11:12:38 +0000 |
---|---|---|
committer | Guillaume Cottenceau <gc@mandriva.com> | 2004-01-20 11:12:38 +0000 |
commit | 01703a2851b874d08ed600b7f2a7904e10c38d6a (patch) | |
tree | 57504b17eaf90ea349351b88ad717d5f0b847a3b | |
parent | 623e1309b716624dceff13a4b16814af77f63234 (diff) | |
download | drakx-01703a2851b874d08ed600b7f2a7904e10c38d6a.tar drakx-01703a2851b874d08ed600b7f2a7904e10c38d6a.tar.gz drakx-01703a2851b874d08ed600b7f2a7904e10c38d6a.tar.bz2 drakx-01703a2851b874d08ed600b7f2a7904e10c38d6a.tar.xz drakx-01703a2851b874d08ed600b7f2a7904e10c38d6a.zip |
*** empty log message ***
-rw-r--r-- | mdk-stage1/mar/mar-extract-only.c | 2 |
1 files changed, 2 insertions, 0 deletions
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; |