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