Commit Graph

17 Commits

Author SHA1 Message Date
Federico Mena Quintero
636c0704c7 Merge branch 'fix_large_files_on_windows' into 'master'
Fix a 'not a normal file' error when compressing large files on Windows.

See merge request federicomenaquintero/bzip2!17
2019-06-14 13:40:50 +00:00
Federico Mena Quintero
389961dbdd testStream(): Remove unused variable 2019-06-14 07:49:46 -05:00
Phil Ross
c31711ae29 Fix a 'not a normal file' error when compressing large files on Windows.
The bzip2 command on Windows would report a 'not a normal file' error
for files of size greater than 2^32 - 1 bytes.

Use _stati64 instead of _stat so that a successful result is returned
for large files.

From: https://github.com/philr/bzip2-windows/blob/v1.0.6.1/patches/06-support_64bit_file_sizes.diff

See also: https://github.com/philr/bzip2-windows/issues/3
2019-06-08 13:04:05 +01:00
Dylan Baker
736902410a add meson build system 2019-06-06 11:10:32 -07:00
Dylan Baker
6b00476951 bzip2.c: mingw wants sys/stat.h, not sys\stat.h
MSVC (at least recent versions) doesn't seem to care about / vs \
either.
2019-06-06 08:48:47 -07:00
Wenzong Fan
a7700e70df (#10): fix bunzip2 -qt returns 0 for corrupt archives
"bzip2 -t FILE" returns 2 if FILE exists, but is not a valid bzip2 file.
"bzip2 -qt FILE" returns 0 when this happens, although it does print out
an error message as is does so.

This has been fix by Debian, just port changes from Debian patch file
"20-legacy.patch".

Debian defect:
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=279025

Fix item from changelog:
http://archive.debian.net/changelogs/pool/main/b/bzip2/bzip2_1.0.2-7/changelog

Fixes https://gitlab.com/federicomenaquintero/bzip2/issues/10

Signed-off-by: Wenzong Fan <wenzong.fan@windriver.com>
2019-06-05 19:52:28 -05:00
Mark Wielaard
5b923861db Change Julian's email address to jseward@acm.org 2019-03-30 22:56:16 +01:00
Julian Seward
962d60610c bzip2-1.0.6 2010-09-06 22:13:13 +02:00
Julian Seward
a1d78c5501 bzip2-1.0.5 2007-12-10 22:13:13 +01:00
Julian Seward
f10a33538e bzip2-1.0.4 2006-12-20 22:13:13 +01:00
Julian Seward
4d540bfc95 bzip2-1.0.3 2005-02-15 22:13:13 +01:00
Julian Seward
099d844292 bzip2-1.0.2 2001-12-30 22:13:13 +01:00
Julian Seward
795b859eee bzip2-1.0.1 2000-06-24 22:13:13 +02:00
Julian Seward
f93cd82a9a bzip2-0.9.5d 1999-09-04 22:13:13 +02:00
Julian Seward
977101ad5f bzip2-0.9.0c 1998-08-23 22:13:13 +02:00
Julian Seward
1eb67a9d8f bzip2-0.1pl2 1997-08-29 22:13:13 +02:00
Julian Seward
33d1340302 bzip2-0.1 1997-08-07 22:13:13 +02:00