bug-tar
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Bug-tar] tar 1.14-1.15.1: large file corruptions using option -S


From: Sergey Poznyakoff
Subject: Re: [Bug-tar] tar 1.14-1.15.1: large file corruptions using option -S
Date: Fri, 04 Mar 2005 01:06:22 +0200

Szakacsits Szabolcs <address@hidden> wrote:

> Since December, users are regularly submit badly corrupted large, sparse

Thank you. Please apply the attached patch.

Regards,
Sergey

Index: src/sparse.c
--- tar-1.15.1/src/sparse.c     2004-09-06 14:30:57.000000000 +0300
+++ tar-1.15.1-n/src/sparse.c   2005-03-04 00:50:05.000000000 +0200
@@ -1,6 +1,6 @@
 /* Functions for dealing with sparse files
 
-   Copyright (C) 2003, 2004 Free Software Foundation, Inc.
+   Copyright (C) 2003, 2004, 2005 Free Software Foundation, Inc.
 
    This program is free software; you can redistribute it and/or modify it
    under the terms of the GNU General Public License as published by the
@@ -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))

reply via email to

[Prev in Thread] Current Thread [Next in Thread]