diff options
author | Guillaume Cottenceau <gc@mandriva.com> | 2004-01-20 11:09:34 +0000 |
---|---|---|
committer | Guillaume Cottenceau <gc@mandriva.com> | 2004-01-20 11:09:34 +0000 |
commit | 7dc7d6507c3b5f695f7b535f909d64fbe22176e6 (patch) | |
tree | 44e35533af80dd5c4dae549289c1b0e2b39fa9ab | |
parent | 876c38be06d20bf35c0945c2e7458d1c7bdbec7c (diff) | |
download | drakx-7dc7d6507c3b5f695f7b535f909d64fbe22176e6.tar drakx-7dc7d6507c3b5f695f7b535f909d64fbe22176e6.tar.gz drakx-7dc7d6507c3b5f695f7b535f909d64fbe22176e6.tar.bz2 drakx-7dc7d6507c3b5f695f7b535f909d64fbe22176e6.tar.xz drakx-7dc7d6507c3b5f695f7b535f909d64fbe22176e6.zip |
*** empty log message ***
-rw-r--r-- | mdk-stage1/mar/mar-extract-only.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/mdk-stage1/mar/mar-extract-only.c b/mdk-stage1/mar/mar-extract-only.c index a5b6ccd2f..39f3d0ef5 100644 --- a/mdk-stage1/mar/mar-extract-only.c +++ b/mdk-stage1/mar/mar-extract-only.c @@ -188,11 +188,15 @@ mar_extract_file(char *mar_filename, char *filename_to_extract, char *dest_dir) if (BZ2_bzread(s.mar_zfile, buf, elem->file_length) != elem->file_length) { zerr(s.mar_zfile); + close(fd); + unlink(dest_file); return -1; } if (write(fd, buf, elem->file_length) != elem->file_length) { log_perror(dest_file); + close(fd); + unlink(dest_file); return -1; } close(fd); /* do not check return value for code size */ |