Skip Menu |
 

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

Report information
The Basics
Id: 101642
Status: new
Priority: 0/
Queue: Archive-Tar

People
Owner: Nobody in particular
Requestors: buttafoo [...] hotmail.com
Cc:
AdminCc:

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



X-Originalarrivaltime: 20 Jan 2015 22:58:21.0041 (UTC) FILETIME=[963C2610:01D03504]
MIME-Version: 1.0
X-Spam-Status: No, score=0.791 tagged_above=-99.9 required=10 tests=[BAYES_00=-1.9, DNS_FROM_AHBL_RHSBL=2.699, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, T_RP_MATCHES_RCVD=-0.01] autolearn=no
X-Spam-Flag: NO
X-Virus-Checked: Checked
Importance: Normal
Content-Type: multipart/mixed; boundary="_52ae547a-54ef-4a74-a4cf-713dd05a3712_"
Message-ID: <SNT151-W3E9E45647F9BC596C6235DF4B0 [...] phx.gbl>
X-Virus-Scanned: Debian amavisd-new at bestpractical.com
X-Spam-Score: 0.791
Received: from localhost (localhost [127.0.0.1]) by hipster.bestpractical.com (Postfix) with ESMTP id 81DB82404AD for <cpan-bug+archive-tar [...] hipster.bestpractical.com>; Tue, 20 Jan 2015 17:58:32 -0500 (EST)
Received: from hipster.bestpractical.com ([127.0.0.1]) by localhost (hipster.bestpractical.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id CWM757IMAKrp for <cpan-bug+archive-tar [...] hipster.bestpractical.com>; Tue, 20 Jan 2015 17:58:27 -0500 (EST)
Received: from la.mx.develooper.com (x1.develooper.com [207.171.7.70]) by hipster.bestpractical.com (Postfix) with SMTP id 64059240493 for <bug-archive-tar [...] rt.cpan.org>; Tue, 20 Jan 2015 17:58:27 -0500 (EST)
Received: (qmail 4095 invoked by alias); 20 Jan 2015 22:58:27 -0000
Received: from snt004-omc3s41.hotmail.com (HELO SNT004-OMC3S41.hotmail.com) (65.54.51.78) by la.mx.develooper.com (qpsmtpd/0.28) with ESMTP; Tue, 20 Jan 2015 14:58:25 -0800
Received: from SNT151-W3 ([65.55.90.137]) by SNT004-OMC3S41.hotmail.com over TLS secured channel with Microsoft SMTPSVC(7.5.7601.22751); Tue, 20 Jan 2015 14:58:21 -0800
Delivered-To: cpan-bug+archive-tar [...] hipster.bestpractical.com
Subject: Hardlink creation called with relative path
Return-Path: <buttafoo [...] hotmail.com>
X-RT-Mail-Extension: archive-tar
X-Original-To: cpan-bug+archive-tar [...] hipster.bestpractical.com
X-Spam-Check-BY: la.mx.develooper.com
X-Originating-Email: [buttafoo [...] hotmail.com]
Date: Tue, 20 Jan 2015 22:58:20 +0000
X-Spam-Level:
X-TMN: [pSvseLik2xMyaDPOAmBZ1tbPnwk/At7r]
To: "bug-Archive-Tar [...] rt.cpan.org" <bug-archive-tar [...] rt.cpan.org>
From: Robert Powers <buttafoo [...] hotmail.com>
X-RT-Interface: Email
Content-Length: 0
Content-Type: multipart/alternative; boundary="_2762b559-1c75-468f-8e38-868042988794_"
Content-Length: 0
content-type: text/plain; charset="utf-8"
Content-Transfer-Encoding: quoted-printable
X-RT-Original-Encoding: iso-8859-1
Content-Length: 1624
Download (untitled) / with headers
text/plain 1.5k
Archive::Tar version: 2.04 Perl version: v5.18.2 - built for darwin-thread-multi-2level (Mac OS 10.10) When creating a hardlink and setting $tar->setcwd() but staying in the current working directory, hardlinks fail to be created. I've attached a script to illustrate (untar_bug2.pl) I added a few print statements to Archive::Tar and it's calling link() like this (note the relative directory in the first argument): link("untar_bug2/my/path/file.txt", "/tmp/untar_dir2/untar_bug2/my/path/OneMoreSub/file.txt") in the invoking directory (~/src), not the tar directory (/tmp/untar_bug2) if I print $! I get: No such file or directory. ERROR: Making hard link from 'untar_bug2/my/path/file.txt' to '/tmp/untar_dir2/untar_bug2/my/path/OneMoreSub/file.txt' failed at /Library/Perl/5.18/Archive/Tar.pm line 953. Archive::Tar::_make_special_file(Archive::Tar=HASH(0x7f94488060e8), Archive::Tar::File=HASH(0x7f9449a57498), "/tmp/untar_dir2/untar_bug2/my/path/OneMoreSub/file.txt") called at /Library/Perl/5.18/Archive/Tar.pm line 871 Archive::Tar::_extract_file(Archive::Tar=HASH(0x7f94488060e8), Archive::Tar::File=HASH(0x7f9449a57498)) called at /Library/Perl/5.18/Archive/Tar.pm line 535 Archive::Tar::_read_tar(Archive::Tar=HASH(0x7f94488060e8), IO::Zlib=GLOB(0x7f9449345b58), HASH(0x7f9449345690)) called at /Library/Perl/5.18/Archive/Tar.pm line 217 Archive::Tar::read(Archive::Tar=HASH(0x7f94488060e8), "/tmp/untar_bug2.tar.gz", 1, HASH(0x7f9449345690)) called at /Users/ropo/src/untar_bug2.pl line 28 main::untar_tar() called at /Users/ropo/src/untar_bug2.pl line 15
content-type: text/html; charset="utf-8"
Content-Transfer-Encoding: quoted-printable
X-RT-Original-Encoding: iso-8859-1
Content-Length: 2022
content-type: text/plain; charset="utf-8"
Content-Disposition: attachment; filename="untar_bug2.pl"
Content-Transfer-Encoding: base64
X-RT-Original-Encoding: ascii
Content-Length: 1158
Download untar_bug2.pl
text/x-perl 1.1k

Message body is not shown because sender requested not to inline it.



This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.