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

clfs-1.2clfs-2.1clfs-3.0.0-systemdclfs-3.0.0-sysvinitsystemdsysvinit
Last change on this file since fb40919 was 69cde8d, checked in by Jim Gifford <clfs@…>, 18 years ago

Added: All patches needed for the book.

  • Property mode set to 100644
File size: 947 bytes
  • tar-1.15.1/src/sparse.c

    Submitted By: Jim Gifford (patches at jg555 dot com)
    Date: 2005-03-19
    Initial Package Version: 1.15.1
    Origin: Tar Bug Reports List
    Upstream Status: Applied
    Description: Fixes large file corruptions using option -S
    	http://lists.gnu.org/archive/html/bug-tar/2005-03/msg00004.html
    old new  
    11/* Functions for dealing with sparse files
    22
    3    Copyright (C) 2003, 2004 Free Software Foundation, Inc.
     3   Copyright (C) 2003, 2004, 2005 Free Software Foundation, Inc.
    44
    55   This program is free software; you can redistribute it and/or modify it
    66   under the terms of the GNU General Public License as published by the
     
    182182{
    183183  static char buffer[BLOCKSIZE];
    184184  size_t count;
    185   size_t offset = 0;
     185  off_t offset = 0;
    186186  struct sp_array sp = {0, 0};
    187187
    188188  if (!lseek_or_error (file, 0, SEEK_SET))
Note: See TracBrowser for help on using the repository browser.