Fix large sparse file corruption.
From bug-tar mailing list via Han Boetes <han@mijncomputer.nl>.
This commit is contained in:
parent
ed4390ae0d
commit
74ed91d09d
@ -1,9 +1,9 @@
|
||||
# $OpenBSD: Makefile,v 1.36 2005/07/03 22:42:20 alek Exp $
|
||||
# $OpenBSD: Makefile,v 1.37 2006/01/11 16:40:51 naddy Exp $
|
||||
|
||||
COMMENT= "GNU version of the traditional tar archiver"
|
||||
|
||||
DISTNAME= tar-1.15.1
|
||||
PKGNAME= g${DISTNAME}p2
|
||||
PKGNAME= g${DISTNAME}p3
|
||||
CATEGORIES= archivers
|
||||
HOMEPAGE= http://www.gnu.org/software/tar/
|
||||
|
||||
|
12
archivers/gtar/patches/patch-src_sparse_c
Normal file
12
archivers/gtar/patches/patch-src_sparse_c
Normal file
@ -0,0 +1,12 @@
|
||||
$OpenBSD: patch-src_sparse_c,v 1.1 2006/01/11 16:40:52 naddy Exp $
|
||||
--- src/sparse.c.orig Wed Jan 11 17:33:48 2006
|
||||
+++ src/sparse.c Wed Jan 11 17:34:29 2006
|
||||
@@ -182,7 +182,7 @@ sparse_scan_file (struct tar_sparse_file
|
||||
{
|
||||
static char buffer[BLOCKSIZE];
|
||||
size_t count;
|
||||
- size_t offset = 0;
|
||||
+ off_t offset = 0;
|
||||
struct sp_array sp = {0, 0};
|
||||
|
||||
if (!lseek_or_error (file, 0, SEEK_SET))
|
Loading…
x
Reference in New Issue
Block a user