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

clfs-1.2 clfs-2.1 clfs-3.0.0-systemd clfs-3.0.0-sysvinit systemd sysvinit
Last change on this file since 8bd1817 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
  • 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.