Magellan Linux

Annotation of /trunk/tar/patches/tar-1.15.1-sparse_fix-1.patch

Parent Directory Parent Directory | Revision Log Revision Log


Revision 153 - (hide annotations) (download)
Tue May 8 20:52:56 2007 UTC (17 years, 1 month ago) by niro
File size: 947 byte(s)
-import

1 niro 153 Submitted By: Jim Gifford (patches at jg555 dot com)
2     Date: 2005-03-19
3     Initial Package Version: 1.15.1
4     Origin: Tar Bug Reports List
5     Upstream Status: Applied
6     Description: Fixes large file corruptions using option -S
7     http://lists.gnu.org/archive/html/bug-tar/2005-03/msg00004.html
8     --- tar-1.15.1/src/sparse.c.orig 2005-03-20 04:23:34.144506120 +0000
9     +++ tar-1.15.1/src/sparse.c 2005-03-20 04:23:56.842055568 +0000
10     @@ -1,6 +1,6 @@
11     /* Functions for dealing with sparse files
12    
13     - Copyright (C) 2003, 2004 Free Software Foundation, Inc.
14     + Copyright (C) 2003, 2004, 2005 Free Software Foundation, Inc.
15    
16     This program is free software; you can redistribute it and/or modify it
17     under the terms of the GNU General Public License as published by the
18     @@ -182,7 +182,7 @@
19     {
20     static char buffer[BLOCKSIZE];
21     size_t count;
22     - size_t offset = 0;
23     + off_t offset = 0;
24     struct sp_array sp = {0, 0};
25    
26     if (!lseek_or_error (file, 0, SEEK_SET))