bugGNU tar - Bugs: bug #11340, Archive creation filename report ...

 
 

You are not allowed to post comments on this tracker with your current authentication level.

bug #11340: Archive creation filename report fix

Submitted by:  Erik Cumps <svslay>
Submitted on:  Fri 17 Dec 2004 12:14:54 PM UTC  
 
Category: NoneSeverity: 3 - Normal
Item Group: NoneStatus: Fixed
Privacy: PublicAssigned to: Sergey Poznyakoff <gray>
Open/Closed: Closed

Wed 28 Sep 2005 08:45:39 PM UTC, comment #1:

Fixed in CVS. This behavior is enabled when given --show-stored-names option.

Thank you.

Sergey Poznyakoff <gray>
Project AdministratorIn charge of this item.
Fri 17 Dec 2004 12:14:54 PM UTC, original submission:

tar -cvv output does not always match tar -tv output. tar -cvv prints original filenames, tar -tv prints filenames as stored in archive. These do not always match. We do a simple tape tar verification by comparing the tar -cvv output with the tar -tv output and that is now basically broken.

I have attached a fix which WFM (and all 'make check' tests pass) but which may not comply with the GNU tar design, coding style or requirements. Feel free to do with it as you please.

Testcase: (be root)

# tar --version
# mkdir /__TEST__; touch /__TEST__/foo
# tar -cvvf TEST.tar /__TEST__
# tar -tvf TEST.tar
# rm -rf /__TEST__

Generates following output:

[root@atlas root]# tar --version
tar (GNU tar) 1.14
Copyright (C) 2004 Free Software Foundation, Inc.
This program comes with NO WARRANTY, to the extent permitted by law.
You may redistribute it under the terms of the GNU General Public License;
see the file named COPYING for details.
Written by John Gilmore and Jay Fenlason.
[root@atlas root]# mkdir /__TEST__; touch /__TEST__/foo
[root@atlas root]# tar -cvvf TEST.tar /__TEST__
tar: Removing leading `/' from member names
drwxr-xr-x root/root 0 2004-12-17 13:08:27 /__TEST__/
-rw-r--r-- root/root 0 2004-12-17 13:08:27 /__TEST__/foo
[root@atlas root]# tar -tvf TEST.tar
drwxr-xr-x root/root 0 2004-12-17 13:08:27 _TEST_/
-rw-r--r-- root/root 0 2004-12-17 13:08:27 _TEST_/foo
[root@atlas root]# rm -rf /__TEST__
[root@atlas root]#

Erik Cumps <svslay>

 

Attached Files
file #2227:  tar-1.14-icos.patch added by svslay (960B - text/plain - Archive creation filename report fix)

 

Depends on the following items: None found

Items that depend on this one: None found

 

CC list is empty

 

Do you think this task is very important?
If so, you can click here to add your encouragement to it.
This task has 0 encouragements so far.

Only logged-in users can vote.

 

Please enter the title of George Orwell's famous dystopian book (it's a date):

 

 

Follow 5 latest changes.

Date Changed By Updated Field Previous Value => Replaced By
Wed 28 Sep 2005 08:45:39 PM UTCgrayStatusNone=>Fixed
  Assigned toNone=>gray
  Open/ClosedOpen=>Closed
Wed 21 Sep 2005 08:16:40 AM UTCsvslayCarbon-Copy-=>Added svslay
Fri 17 Dec 2004 12:14:54 PM UTCsvslayAttached File-=>Added tar-1.14-icos.patch, #1978

Back to the top


Powered by Savane 3.1-cleanup1