From owner-freebsd-stable Thu Oct 22 07:54:51 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id HAA08848 for freebsd-stable-outgoing; Thu, 22 Oct 1998 07:54:51 -0700 (PDT) (envelope-from owner-freebsd-stable@FreeBSD.ORG) Received: from amalthea.salford.ac.uk (amalthea.salford.ac.uk [146.87.255.61]) by hub.freebsd.org (8.8.8/8.8.8) with SMTP id HAA08636 for ; Thu, 22 Oct 1998 07:52:25 -0700 (PDT) (envelope-from freebsd-stable-list@salford.ac.uk) From: freebsd-stable-list@salford.ac.uk Received: (qmail 12638 invoked by alias); 22 Oct 1998 14:51:26 -0000 Received: (qmail 12632 invoked from network); 22 Oct 1998 14:51:25 -0000 Received: from ananke.salford.ac.uk (146.87.255.67) by amalthea.salford.ac.uk with SMTP; 22 Oct 1998 14:51:25 -0000 Received: (qmail 15009 invoked by alias); 22 Oct 1998 14:51:23 -0000 Delivered-To: catchall-freebsd-stable@freebsd.org Received: (qmail 15001 invoked by uid 6); 22 Oct 1998 14:51:22 -0000 Message-ID: <19981022145122.15000.qmail@ananke.salford.ac.uk> Reply-To: mark@salfrd.ac.uk (Mark Powell) Subject: Re: int overflow in tar To: freebsd-stable@FreeBSD.ORG Date: 22 Oct 1998 15:51:19 +0100 X-Gated-To-News-By: NewsMaster X-Trace: ananke.salford.ac.uk 909067881 14997 146.87.255.76 (22 Oct 1998 14:51:21 GMT) X-Complaints-To: postmaster@salford.ac.uk Xref: ananke.salford.ac.uk salford.mailing-lists.freebsd.stable:7653 Sender: owner-freebsd-stable@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG In article <70fko7$af8$1@ananke.salford.ac.uk>, Ben Stuyts wrote: >The gnu tar program included with FreeBSD has a tiny problem with the option >--totals. This option prints the total number of bytes written, but >unfortunately the counter used by tar (tot_written in tar.h) is an int. So it >overflows after 2^31 bytes have been written, like this: > >Backing up nemesis:/home3 at Mon Oct 19 13:27:43 CEST 1998 >... >Total bytes written: -1960021504 > >df /home3 shows: >Filesystem 1K-blocks Used Avail Capacity Mounted on >/dev/sd2s1f 3857506 2307663 1241243 65% /home3 > >Should I take this up with the people who maintain gnu tar, or is this >something we can fix in our source tree? > >Could there be more int overflow problems with tar? I use GNU tar v1.12 for my backups. It's available as a port in, /usr/ports/sysutils/gtar. Even that overflows under FreeBSD. However, when compiled under Solaris, it doesn't have the problem. -- Mark Powell - System Administrator (UNIX) - Clifford Whitworth Building A.I.S., University of Salford, Salford, Manchester, UK. Tel: +44 161 295 5936 Fax: +44 161 295 5888 Email: M.S.Powell@ais.salfrd.ac.uk finger mark@ucsalf.ac.uk (for PGP key) NO SPAM please: Spell salford correctly to reply to me. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message