Skip Menu |
 

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

Report information
The Basics
Id: 103279
Status: open
Priority: 0/
Queue: Archive-Tar

People
Owner: Nobody in particular
Requestors: paul.kolano [...] nasa.gov
Cc:
AdminCc:

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



MIME-Version: 1.0
X-Spam-Status: No, score=-6.91 tagged_above=-99.9 required=10 tests=[BAYES_00=-1.9, RCVD_IN_DNSWL_HI=-5, T_RP_MATCHES_RCVD=-0.01] autolearn=ham
Content-Disposition: inline
X-Spam-Flag: NO
content-type: text/plain; charset="utf-8"
Message-ID: <20150402201141.GD66407 [...] macopss-MacBook-Pro-2.local>
X-Virus-Scanned: Debian amavisd-new at bestpractical.com
X-Spam-Score: -6.91
Received: from localhost (localhost [127.0.0.1]) by hipster.bestpractical.com (Postfix) with ESMTP id 73E522403E6 for <cpan-bug+archive-tar [...] hipster.bestpractical.com>; Thu, 2 Apr 2015 16:11:55 -0400 (EDT)
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 36YTJgwphuA2 for <cpan-bug+archive-tar [...] hipster.bestpractical.com>; Thu, 2 Apr 2015 16:11:52 -0400 (EDT)
Received: from la.mx.develooper.com (x1.develooper.com [207.171.7.70]) by hipster.bestpractical.com (Postfix) with SMTP id 3946D2403E2 for <bug-archive-tar [...] rt.cpan.org>; Thu, 2 Apr 2015 16:11:50 -0400 (EDT)
Received: (qmail 9141 invoked by alias); 2 Apr 2015 20:11:49 -0000
Received: from ndmsnpf03.ndc.nasa.gov (HELO ndmsnpf03.ndc.nasa.gov) (198.117.0.123) by la.mx.develooper.com (qpsmtpd/0.28) with ESMTP; Thu, 02 Apr 2015 13:11:47 -0700
Received: from ndjsppt105.ndc.nasa.gov (ndjsppt105.ndc.nasa.gov [198.117.1.199]) by ndmsnpf03.ndc.nasa.gov (Postfix) with ESMTP id EEFA52D809F for <bug-archive-tar [...] rt.cpan.org>; Thu, 2 Apr 2015 15:08:42 -0500 (CDT)
Received: from NDJSCHT116.ndc.nasa.gov (ndjscht116-pub.ndc.nasa.gov [198.117.1.216]) by ndjsppt105.ndc.nasa.gov (8.15.0.59/8.15.0.59) with ESMTP id t32KBg0W006370 for <bug-archive-tar [...] rt.cpan.org>; Thu, 2 Apr 2015 15:11:42 -0500
Received: from localhost (129.99.133.86) by smtp01.ndc.nasa.gov (198.117.1.216) with Microsoft SMTP Server (TLS) id 14.3.224.2; Thu, 2 Apr 2015 15:11:42 -0500
Delivered-To: cpan-bug+archive-tar [...] hipster.bestpractical.com
User-Agent: Mutt/1.5.23 (2014-03-12)
Subject: Archive::Tar strips trailing whitespace from extracted file names
X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:,, definitions=2015-04-02_06:,, signatures=0
Return-Path: <paul.kolano [...] nasa.gov>
X-RT-Mail-Extension: archive-tar
X-Original-To: cpan-bug+archive-tar [...] hipster.bestpractical.com
X-Spam-Check-BY: la.mx.develooper.com
Date: Thu, 2 Apr 2015 13:11:41 -0700
X-Spam-Level:
X-Originating-Ip: [129.99.133.86]
To: <bug-archive-tar [...] rt.cpan.org>
From: Paul Kolano <paul.kolano [...] nasa.gov>
X-RT-Original-Encoding: ascii
X-RT-Interface: Email
Content-Length: 902
Download (untitled) / with headers
text/plain 902b
Trailing whitespace is stripped from file names during extraction. To reproduce, create tar containing file with trailing whitespace: Show quoted text
> mkdir test > echo foo >test/"space_after " > tar cvf test.tar test
test/ test/space_after Program to extract (a.pl): #!/usr/bin/env perl use Archive::Tar; my $tar = Archive::Tar->new; $tar->read("test.tar"); $tar->extract(); Extract using a.pl: Show quoted text
> a.pl > mv test test.bak > a.pl > diff -r test test.bak
Only in test: space_after Only in test.bak: space_after The extracted "space_after " will be created as "space_after". I believe this can be fixed by changing name from A100 to Z100 in the Archive::Tar::File unpack string. Haven't tested, but A155 prefix field is likely also a problem and possibly uname/gname (OSX can have spaces in group name although not sure if they can be trailing).
MIME-Version: 1.0
In-Reply-To: <20150402201141.GD66407 [...] macopss-MacBook-Pro-2.local>
X-Mailer: MIME-tools 5.504 (Entity 5.504)
Content-Disposition: inline
X-RT-Interface: Web
References: <20150402201141.GD66407 [...] macopss-MacBook-Pro-2.local>
Content-Type: text/plain; charset="utf-8"
Message-ID: <rt-4.0.18-11388-1428079088-1077.103279-0-0 [...] rt.cpan.org>
Content-Transfer-Encoding: binary
X-RT-Original-Encoding: utf-8
X-RT-Encrypt: 0
X-RT-Sign: 0
Content-Length: 183
Download (untitled) / with headers
text/plain 183b
I opened an issue on the repo: https://github.com/jib/archive-tar-new/issues/10 It will probably help to make a pull-request, although there is an open PR on there that is quite old.


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.