Subject: | Empty files are saved with bogus data |
An example is worth a thousand words:
poletti@Polebian bug$ dir
total 4
-rw-r--r-- 1 poletti dialout 160 2011-08-29 12:49 dist.ini
-rw-r--r-- 1 poletti dialout 0 2011-08-29 12:48 empty
poletti@Polebian bug$ cat dist.ini
name = Sample
abstract = Just a sample
author = A. U. Thor (<author@example.com>)
license = Perl_5
copyright_holder = A. U. Thor
version = 1.0
[@Basic]
poletti@Polebian bug$ dzil build
[DZ] beginning to build Sample
[DZ] writing Sample in Sample-1.0
[DZ] writing archive to Sample-1.0.tar.gz
poletti@Polebian bug$ cat Sample-1.0/empty
poletti@Polebian bug$ tar xOf Sample-1.0.tar.gz Sample-1.0/empty
HASH(0xacfa520)
As you can see, the file "empty" is still empty in the subdirectory, but is wrongly inserted with
bogus data "HASH(0xacfa520)" inside the tar archive.
Cheers, Flavio.