Your message dated Wed, 21 Sep 2005 23:47:05 -0700
with message-id <[EMAIL PROTECTED]>
and subject line Bug#305699: fixed in libarchive-tar-perl 1.26-2
has caused the attached Bug report to be marked as done.
This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.
(NB: If you are a system administrator and have no idea what I am
talking about this indicates a serious mail system misconfiguration
somewhere. Please contact me immediately.)
Debian bug tracking system administrator
(administrator, Debian Bugs database)
--------------------------------------
Received: (at submit) by bugs.debian.org; 21 Apr 2005 14:08:46 +0000
>From [EMAIL PROTECTED] Thu Apr 21 07:08:46 2005
Return-path: <[EMAIL PROTECTED]>
Received: from natnoddy.rzone.de [81.169.145.166]
by spohr.debian.org with esmtp (Exim 3.35 1 (Debian))
id 1DOcMH-0001Lx-00; Thu, 21 Apr 2005 07:08:45 -0700
Received: from morannon.inferno.nadir.org (d008171.adsl.hansenet.de
[80.171.8.171])
by post.webmailer.de (8.13.1/8.13.1) with ESMTP id j3LE8gGc011156
for <[EMAIL PROTECTED]>; Thu, 21 Apr 2005 16:08:43 +0200 (MEST)
Subject: Archive::Tar fails extracting files correctly if alternate name is
used
From: Arne Bernin <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED]
Content-Type: text/plain
Date: Thu, 21 Apr 2005 16:08:41 +0200
Message-Id: <[EMAIL PROTECTED]>
Mime-Version: 1.0
X-Mailer: Evolution 2.0.3
Content-Transfer-Encoding: 7bit
Delivered-To: [EMAIL PROTECTED]
X-Spam-Checker-Version: SpamAssassin 2.60-bugs.debian.org_2005_01_02
(1.212-2003-09-23-exp) on spohr.debian.org
X-Spam-Status: No, hits=-8.0 required=4.0 tests=BAYES_00,HAS_PACKAGE
autolearn=no version=2.60-bugs.debian.org_2005_01_02
X-Spam-Level:
Package: libarchive-tar-perl
Version: 1.23-1
When trying to unpack files from a read archive to
a different location (not from current working dir),
Archive::Tar creates an additional directory named
like the file in the path.
Example:
-------------------------------------------
use Tar;
my $tar = Archive::Tar->new();
$tar->read("knockd.tgz", 1);
foreach $name ($tar->list_files()) {
my $fullpath = "/tmp/test/" . $name;
print "fullpath:$fullpath\n";
$tar->extract_file($name, $fullpath);
$tar->extract_file($name);
}
-------------------------------------------
the knockd.tgz contains:
drwxr-xr-x root/root 0 2004-10-25 18:38:05 etc/
-rw------- root/root 603 2004-10-25 18:38:05 etc/knockd.conf
drwxr-xr-x root/root 0 2004-10-25 18:38:05 etc/default/
-rw------- root/root 299 2004-10-25 18:38:05 etc/default/knockd
resulting in the following files (after using the code above to unpack):
drwxr-xr-x arne/arne 0 2005-04-21 15:35:46 etc/
drwxr-xr-x arne/arne 0 2005-04-21 15:35:46 etc/knockd.conf/
-rw------- arne/arne 603 2004-10-25 18:38:05 etc/knockd.conf/knockd.conf
drwxr-xr-x arne/arne 0 2005-04-21 15:35:46 etc/default/
drwxr-xr-x arne/arne 0 2005-04-21 15:35:46 etc/default/knockd/
-rw------- arne/arne 299 2004-10-25 18:38:05 etc/default/knockd/knockd
The following patch for Archive::Tar.pm seems to fix this:
--- Tar.pm.old 2005-04-21 15:55:12.000000000 +0200
+++ Tar.pm 2005-04-21 15:53:21.000000000 +0200
@@ -470,8 +470,8 @@
$entry->is_dir );
my $dir;
### is $name an absolute path? ###
- if( File::Spec->file_name_is_absolute( $name ) ) {
- $dir = $name;
+ if( File::Spec->file_name_is_absolute( $dirs ) ) {
+ $dir = $dirs;
### it's a relative path ###
} else {
--
Arne Bernin <[EMAIL PROTECTED]>
---------------------------------------
Received: (at 305699-close) by bugs.debian.org; 22 Sep 2005 06:48:23 +0000
>From [EMAIL PROTECTED] Wed Sep 21 23:48:22 2005
Return-path: <[EMAIL PROTECTED]>
Received: from katie by spohr.debian.org with local (Exim 3.36 1 (Debian))
id 1EIKrJ-0008Ju-00; Wed, 21 Sep 2005 23:47:05 -0700
From: Matthias Klose <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED]
X-Katie: $Revision: 1.56 $
Subject: Bug#305699: fixed in libarchive-tar-perl 1.26-2
Message-Id: <[EMAIL PROTECTED]>
Sender: Archive Administrator <[EMAIL PROTECTED]>
Date: Wed, 21 Sep 2005 23:47:05 -0700
Delivered-To: [EMAIL PROTECTED]
X-Spam-Checker-Version: SpamAssassin 2.60-bugs.debian.org_2005_01_02
(1.212-2003-09-23-exp) on spohr.debian.org
X-Spam-Level:
X-Spam-Status: No, hits=-6.0 required=4.0 tests=BAYES_00,HAS_BUG_NUMBER
autolearn=no version=2.60-bugs.debian.org_2005_01_02
Source: libarchive-tar-perl
Source-Version: 1.26-2
We believe that the bug you reported is fixed in the latest version of
libarchive-tar-perl, which is due to be installed in the Debian FTP archive:
libarchive-tar-perl_1.26-2.diff.gz
to pool/main/liba/libarchive-tar-perl/libarchive-tar-perl_1.26-2.diff.gz
libarchive-tar-perl_1.26-2.dsc
to pool/main/liba/libarchive-tar-perl/libarchive-tar-perl_1.26-2.dsc
libarchive-tar-perl_1.26-2_all.deb
to pool/main/liba/libarchive-tar-perl/libarchive-tar-perl_1.26-2_all.deb
libarchive-tar-perl_1.26.orig.tar.gz
to pool/main/liba/libarchive-tar-perl/libarchive-tar-perl_1.26.orig.tar.gz
A summary of the changes between this version and the previous one is
attached.
Thank you for reporting the bug, which will now be closed. If you
have further comments please address them to [EMAIL PROTECTED],
and the maintainer will reopen the bug report if appropriate.
Debian distribution maintenance software
pp.
Matthias Klose <[EMAIL PROTECTED]> (supplier of updated libarchive-tar-perl
package)
(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing [EMAIL PROTECTED])
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Format: 1.7
Date: Thu, 22 Sep 2005 06:38:32 +0000
Source: libarchive-tar-perl
Binary: libarchive-tar-perl
Architecture: source all
Version: 1.26-2
Distribution: unstable
Urgency: low
Maintainer: Matthias Klose <[EMAIL PROTECTED]>
Changed-By: Matthias Klose <[EMAIL PROTECTED]>
Description:
libarchive-tar-perl - Archive::Tar - manipulate tar files in perl
Closes: 305699
Changes:
libarchive-tar-perl (1.26-2) unstable; urgency=low
.
* Upload to unstable.
.
libarchive-tar-perl (1.26-1) unstable; urgency=low
.
* New upstream release
- Fixes: Archive::Tar fails extracting files correctly if alternate name
is used (closes: #305699).
- includes support for PerlIO, now preferred over IO::String, thus
downgrading libio-string-perl to Suggests in debian/control
- splits log of past changes from README into CHANGES
* debian/copyright: list past and current maintainer
* Standards-Version 3.6.2, no changes required
Files:
eed0f478705c34a10a9f73e16879f680 625 perl optional
libarchive-tar-perl_1.26-2.dsc
f649c69d89fdc56b2c5985a672cd941a 35070 perl optional
libarchive-tar-perl_1.26.orig.tar.gz
63b126117cd51d4ba68c0530e4aab692 2752 perl optional
libarchive-tar-perl_1.26-2.diff.gz
96b17dfcc78440c5089b9c2a95b91268 42904 perl optional
libarchive-tar-perl_1.26-2_all.deb
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (GNU/Linux)
iD8DBQFDMlHXStlRaw+TLJwRAtMZAKC35atXtRuamg2rhNY8C/seKvCgQACgh2PA
g9BD0UzfXlJWvu6URQjYFcM=
=/3F3
-----END PGP SIGNATURE-----
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]