bug-gnu-utils
[Top][All Lists]
Advanced

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

[patch] 1.13, 1.13.19: A diff LFS problem


From: Maciej W. Rozycki
Subject: [patch] 1.13, 1.13.19: A diff LFS problem
Date: Tue, 13 Feb 2001 19:23:03 +0100 (MET)

Hi,

 The current version of tar mishandles over-4GB files (archive members) 
when invoked to perform a diff on 32-bit systems.  This is due to
read_and_process() using size_t type to keep file's size.  The following
patch fixes the problem. 

src/ChangeLog:

2001-02-09  Maciej W. Rozycki  <address@hidden>

        * compare.c (read_and_process): Use off_t for size.

  Maciej

-- 
+  Maciej W. Rozycki, Technical University of Gdansk, Poland   +
+--------------------------------------------------------------+
+        e-mail: address@hidden, PGP key available        +

diff -up --recursive --new-file tar-1.13.macro/src/compare.c 
tar-1.13/src/compare.c
--- tar-1.13.macro/src/compare.c        Mon Jul  5 06:07:04 1999
+++ tar-1.13/src/compare.c      Fri Feb  9 23:21:45 2001
@@ -144,7 +144,7 @@ process_dumpdir (size_t bytes, char *buf
 `------------------------------------------------------------------------*/
 
 static void
-read_and_process (size_t size, int (*processor) (size_t, char *))
+read_and_process (off_t size, int (*processor) (size_t, char *))
 {
   union block *data_block;
   size_t data_size;




reply via email to

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