develooper Front page | perl.perl5.porters | Postings from May 2007

[PATCH] Archive::Tar and -Dmksymlinks

From:
Rafael Garcia-Suarez
Date:
May 24, 2007 02:15
Subject:
[PATCH] Archive::Tar and -Dmksymlinks
Message ID:
b77c1dce0705240214l338c035bgbd4012d16df43df0@mail.gmail.com
If I compile perl with -Dmksymlinks, test 89 of
../lib/Archive/Tar/t/02_methods.t fails.

The change below fixes it. It's actually a partial revert of change
31243. Jos, does it look good to you ? It makes sense to me. No other
test fails due to that.

--- /tmp/tmp.10199.33   2007-05-24 11:12:50.000000000 +0200
+++ /home/rafael/p4blead/lib/Archive/Tar/File.pm        2007-05-24
11:11:36.000000000 +0200
@@ -237,7 +237,7 @@ sub _new_from_file {
     my $type        = __PACKAGE__->_filetype($path);
     my $data        = '';

-    unless ($type == DIR || $type == SYMLINK) {
+    unless ($type == DIR) {
         my $fh = IO::File->new;
         $fh->open($path) or return;



nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About