Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 9 Dec 2005 11:27:27 -0000
From:      "Steven Hartland" <killing@multiplay.co.uk>
To:        "Dan Nelson" <dnelson@allantgroup.com>, "Brian Fundakowski Feldman" <green@freebsd.org>
Cc:        freebsd-stable@freebsd.org
Subject:   Re: bsdtar / libarchive bug?
Message-ID:  <002901c5fcb3$8b7fc800$b3db87d4@multiplay.co.uk>
References:  <00c701c5fc1c$e6db4220$b3db87d4@multiplay.co.uk><20051208225404.GF98704@green.homeunix.org> <20051208234540.GB95420@dan.emsphone.com>

next in thread | previous in thread | raw e-mail | index | archive | help

----- Original Message ----- 
From: "Dan Nelson" <dnelson@allantgroup.com>

> 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.




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?002901c5fcb3$8b7fc800$b3db87d4>