Skip Menu |

This queue is for tickets about the Archive-Tar CPAN distribution.

Report information
The Basics
Id: 28687
Status: resolved
Priority: 0/
Queue: Archive-Tar

People
Owner: Nobody in particular
Requestors: rmue [...] gmx.de
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



Subject: Fwd: Unespected reaction of Archive::Tar
Date: Mon, 6 Aug 2007 17:13:27 +0200
To: bug-archive-tar [...] rt.cpan.org
From: "Jos I. Boumans" <kane [...] cpan.org>
Begin forwarded message: Show quoted text
> From: "Ralph Mueller" <rmue@gmx.de> > Date: Mon 6 Aug 2007 17:09:12 GMT+02:00 > To: kane@cpan.org > Subject: Unespected reaction of Archive::Tar > > Hi Jos, > > the situation: I want to archive a dir and incidentally > there is a simple text-file named "0" (zero) in that dir. > > ralph@erde:/tmp$ ls -la 0 > -rw-r--r-- 1 ralph ralph 283 2007-08-06 16:31 0 > > ralph@erde:/tmp$ file 0 > 0: ASCII text > > #!/usr/bin/perl > use Archive::Tar; > my $tar = Archive::Tar->new(); > $tar->clear or warn "Fehler: $!"; > @files = ("0"); > $tar->add_files(@files) or warn "Fehler: $!"; > $tar->write("archiv.tgz",1) or warn "Fehler: $!"; > > But that short script doesn't work: > > Unable to add file: '0' at ./unbenannt line 6 > Fehler: at ./unbenannt line 6. > > If i rename that file to 1 (one), then there is no > problem. :-] > > Can u give me a hint please? Many thx in advance! > > Cheers! > Ralph (Ubuntu 7.04, Archive::Tar 1.30) > > -- > Psssst! Schon vom neuen GMX MultiMessenger gehört? > Der kanns mit allen: http://www.gmx.net/de/go/multimessenger
-- Jos I. Boumans RIPE Network Coordination Center Database Group Manager Singel 258 Amsterdam NL http://www.ripe.net +31 20 535 4444
Hi Ralph, Show quoted text
> > But that short script doesn't work: > > > > Unable to add file: '0' at ./unbenannt line 6 > > Fehler: at ./unbenannt line 6. > > > > If i rename that file to 1 (one), then there is no > > problem. :-]
thanks for reporting this bug. It has now been fixed in the development version of Archive::Tar and this fix will be part of the next release. Cheers, Jos