Using Archive::Tar, if I create a tar file of a symlink with FOLLOW_SYMLINK = 1, the write fails. Here's the 1-line reproducer. Perl 5.12.4, fedora 15
The same command adding "foo" instead of bar works. Hard to imagine something so simple being broken - but I can't see what I'm doing wrong!# touch foo # ln -s foo bar # perl -MArchive::Tar -e'$Archive::Tar::FOLLOW_SYMLINK = 1; my $t = Ar +chive::Tar->new; $t->add_files("bar"); $t->write( "baz.tgz", COMPRESS +_GZIP );print $t->error(1); print $Archive::Tar::VERSION' Could not write data for: bar at -e line 1 Could not write data for: bar at /usr/share/perl5/Archive/Tar.pm line +1293 Archive::Tar::write('Archive::Tar=HASH(0x9dcf90)', 'baz.tgz', +9) called at -e line 1 1.78
Thanks for any help.
This communication may not represent my employer's views, if any, on the matters discussed.
In reply to Archive::Tar fails to dereference and save symlinks? by tlhackque
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |