diff options
author | Guillaume Cottenceau <gc@mandriva.com> | 2001-01-02 23:30:15 +0000 |
---|---|---|
committer | Guillaume Cottenceau <gc@mandriva.com> | 2001-01-02 23:30:15 +0000 |
commit | 6fc74b08e8a042b0a47c1388f90ab64c0ba70b0e (patch) | |
tree | 3a34870f355158fbd1e34a457327060a3c331015 /mdk-stage1/mar/mar-extract-only.c | |
parent | e441f417bbd3c9f223668bfb0720cda739860811 (diff) | |
download | drakx-6fc74b08e8a042b0a47c1388f90ab64c0ba70b0e.tar drakx-6fc74b08e8a042b0a47c1388f90ab64c0ba70b0e.tar.gz drakx-6fc74b08e8a042b0a47c1388f90ab64c0ba70b0e.tar.bz2 drakx-6fc74b08e8a042b0a47c1388f90ab64c0ba70b0e.tar.xz drakx-6fc74b08e8a042b0a47c1388f90ab64c0ba70b0e.zip |
vacances:
- use malloc instead of alloca for big main allocation since on some systems (LM-7.2 for example it seems) the stack size is limited to 2048 kbyt
es
- don't give up when the CRC is not OK, but tries to continue anyway
Diffstat (limited to 'mdk-stage1/mar/mar-extract-only.c')
-rw-r--r-- | mdk-stage1/mar/mar-extract-only.c | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/mdk-stage1/mar/mar-extract-only.c b/mdk-stage1/mar/mar-extract-only.c index fc9e9e55f..ec99da114 100644 --- a/mdk-stage1/mar/mar-extract-only.c +++ b/mdk-stage1/mar/mar-extract-only.c @@ -171,16 +171,13 @@ mar_open_file(char *filename, struct mar_stream *s) /* verify integrity */ if (s->crc32 != mar_calc_integrity(s)) + log_message("ERROR! mar_open_file: CRC check failed (trying to continue)"); + + if (gzseek(s->mar_gzfile, sizeof(int), SEEK_SET) != sizeof(int)) { - log_message("E: mar::open_marfile CRC check failed"); + gzerr(s->mar_gzfile); return -1; } - else - if (gzseek(s->mar_gzfile, sizeof(int), SEEK_SET) != sizeof(int)) - { - gzerr(s->mar_gzfile); - return -1; - } while (end_filetable == 0) { |