summaryrefslogtreecommitdiffstats
path: root/mdk-stage1
diff options
context:
space:
mode:
authorGuillaume Cottenceau <gc@mandriva.com>2004-01-20 11:12:38 +0000
committerGuillaume Cottenceau <gc@mandriva.com>2004-01-20 11:12:38 +0000
commit01703a2851b874d08ed600b7f2a7904e10c38d6a (patch)
tree57504b17eaf90ea349351b88ad717d5f0b847a3b /mdk-stage1
parent623e1309b716624dceff13a4b16814af77f63234 (diff)
downloaddrakx-backup-do-not-use-01703a2851b874d08ed600b7f2a7904e10c38d6a.tar
drakx-backup-do-not-use-01703a2851b874d08ed600b7f2a7904e10c38d6a.tar.gz
drakx-backup-do-not-use-01703a2851b874d08ed600b7f2a7904e10c38d6a.tar.bz2
drakx-backup-do-not-use-01703a2851b874d08ed600b7f2a7904e10c38d6a.tar.xz
drakx-backup-do-not-use-01703a2851b874d08ed600b7f2a7904e10c38d6a.zip
*** empty log message ***
Diffstat (limited to 'mdk-stage1')
-rw-r--r--mdk-stage1/mar/mar-extract-only.c2
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;