helpGNU tar - Support: sr #107095, --format=ustar doesn't accept file...

 
 

sr #107095: --format=ustar doesn't accept file with 102 bytes long: file name is too long (cannot be split)

Submitted by:  Patrice Dumas <pertusus>
Submitted on:  Thu 29 Oct 2009 03:40:31 PM UTC  
 
Category: NonePriority: 5 - Normal
Severity: 3 - NormalStatus: None
Privacy: PublicAssigned to: None
Open/Closed: OpenOperating System: None

Add a New Comment (Rich MarkupRich Markup):
   

You are not logged in

Please log in, so followups can be emailed to you.

 

Thu 29 Oct 2009 03:42:44 PM UTC, comment #1:

tar --format=ustar -cvf t.tar dir/

with
ls dir/
aaaaaaaaa1aaaaaaaa2aaaaaaaaa3aaaaaaaaa4aaaaaaaaa5aaaaaaaaa6aaaaaaaaa7aaaaaaaaa8aaaaaaaaa9aaaaaaaa10a
aaaaaaaaa1aaaaaaaa2aaaaaaaaa3aaaaaaaaa4aaaaaaaaa5aaaaaaaaa6aaaaaaaaa7aaaaaaaaa8aaaaaaaaa9aaaaaaaa10aa

leads to
dir/
dir/aaaaaaaaa1aaaaaaaa2aaaaaaaaa3aaaaaaaaa4aaaaaaaaa5aaaaaaaaa6aaaaaaaaa7aaaaaaaaa8aaaaaaaaa9aaaaaaaa10a
../src/tar: dir/aaaaaaaaa1aaaaaaaa2aaaaaaaaa3aaaaaaaaa4aaaaaaaaa5aaaaaaaaa6aaaaaaaaa7aaaaaaaaa8aaaaaaaaa9aaaaaaaa10aa: file name is too long (cannot be split); not dumped
../src/tar: Exiting with failure status due to previous errors

Although the doc says:
The maximum length of a file name is limited to 256 characters, provided that the file name can be split at a directory separator in two parts, first of them being at most 155 bytes long. So, in most cases the maximum file name length will be shorter than 256 characters.

The file that tar doesn't like is 102 bytes long (unless I missed something).

Patrice Dumas <pertusus>
Thu 29 Oct 2009 03:40:31 PM UTC, original submission:
Patrice Dumas <pertusus>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach File(s):
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by pertusus (Submitted the item)
  •  

    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):

     

     

    No Changes Have Been Made to This Item

    Back to the top


    Powered by Savane 3.1-cleanup