source: scripts/patches/tar-1.15.1-sparse_fix-1.patch@ f2d3163

clfs-1.2 clfs-2.1 clfs-3.0.0-systemd clfs-3.0.0-sysvinit systemd sysvinit
Last change on this file since f2d3163 was 7f65c0e, checked in by Jim Gifford <clfs@…>, 19 years ago

r625@server (orig r623): jim | 2005-10-31 12:43:24 -0800
Final Move

  • Property mode set to 100644
File size: 947 bytes
RevLine 
[617118d]1Submitted By: Jim Gifford (patches at jg555 dot com)
2Date: 2005-03-19
3Initial Package Version: 1.15.1
4Origin: Tar Bug Reports List
5Upstream Status: Applied
6Description: 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))
Note: See TracBrowser for help on using the repository browser.