From owner-freebsd-stable@FreeBSD.ORG Fri Dec 9 11:28:13 2005 Return-Path: X-Original-To: freebsd-stable@freebsd.org Delivered-To: freebsd-stable@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id AA90516A41F; Fri, 9 Dec 2005 11:28:13 +0000 (GMT) (envelope-from killing@multiplay.co.uk) Received: from multiplay.co.uk (core6.multiplay.co.uk [85.236.96.23]) by mx1.FreeBSD.org (Postfix) with ESMTP id D6F0943D69; Fri, 9 Dec 2005 11:27:55 +0000 (GMT) (envelope-from killing@multiplay.co.uk) Received: from vader ([212.135.219.179]) by multiplay.co.uk (multiplay.co.uk [85.236.96.23]) (MDaemon.PRO.v8.1.3.R) with ESMTP id md50002104515.msg; Fri, 09 Dec 2005 11:27:34 +0000 Message-ID: <002901c5fcb3$8b7fc800$b3db87d4@multiplay.co.uk> From: "Steven Hartland" To: "Dan Nelson" , "Brian Fundakowski Feldman" References: <00c701c5fc1c$e6db4220$b3db87d4@multiplay.co.uk><20051208225404.GF98704@green.homeunix.org> <20051208234540.GB95420@dan.emsphone.com> Date: Fri, 9 Dec 2005 11:27:27 -0000 MIME-Version: 1.0 Content-Type: text/plain; format=flowed; charset="iso-8859-1"; reply-type=original Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2900.2670 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2670 X-Spam-Processed: multiplay.co.uk, Fri, 09 Dec 2005 11:27:34 +0000 (not processed: message from valid local sender) X-MDRemoteIP: 212.135.219.179 X-Return-Path: killing@multiplay.co.uk X-MDAV-Processed: multiplay.co.uk, Fri, 09 Dec 2005 11:27:34 +0000 Cc: freebsd-stable@freebsd.org Subject: Re: bsdtar / libarchive bug? X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 09 Dec 2005 11:28:13 -0000 ----- Original Message ----- From: "Dan Nelson" > I managed to make it create 0-byte files: > > $ touch a > $ tar cvf b.tar --exclude a a > $ tar zcvf b.tar.gz --exclude a a > $ ls -la b.tar* > -rw-r--r-- 1 dan wheel 0 Dec 8 17:37 b.tar > -rw-r--r-- 1 dan wheel 20 Dec 8 17:37 b.tar.gz > $ gunzip -vl b.tar.gz > method crc date time compressed uncompr. ratio uncompressed_name > defla 00000000 Dec 8 17:37 20 0 0.0% b.tar > > This works because at the time tar creates the output file, it doesn't > know that I have excluded all the listed files. > > I am leaning towards an empty archive being legal, though, since it > makes scripting easier. There may be cases where you are archiving > files generated daily, and you want to distinguish "no data today" from > "the archiver didn't run". At worst it should print a warning. That's the reason here as well. It was a scripted process where we create a tar.gz of new / changed files and a shell script to remove old files. As some files had been removed only in this instance we ended up with a script file with entries but nothing in the tar.gz which then barfed on "install". Steve ================================================ This e.mail is private and confidential between Multiplay (UK) Ltd. and the person or entity to whom it is addressed. In the event of misdirection, the recipient is prohibited from using, copying, printing or otherwise disseminating it or any information contained in it. In the event of misdirection, illegible or incomplete transmission please telephone (023) 8024 3137 or return the E.mail to postmaster@multiplay.co.uk.