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

Submitter:  Patrice Dumas <pertusus>
Submitted:  Thu 29 Oct 2009 03:40:31 PM UTC
   
 
Category:  None Priority:  5 - Normal
Severity:  3 - Normal Status:  None
Privacy:  Public Assigned to:  None
Open/Closed:  Open Operating System:  None
* Mandatory Fields

Post a Comment

Add a New Comment Rich Markup
   

Discussion

Thu 28 Dec 2017 11:53:48 PM UTC, comment #2: 
Arsen.Shnurkov <arsenshnurkov>
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>

 

Attached Files

This item currently has no attached files.

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

Attach Files:
   
   
Comment:
   

 

Dependencies

This item does not depend on any other items.

No items depend on this one.

 

Mail Notification Carbon-Copy List

Carbon-Copy List
  • -email is unavailable- added by arsenshnurkov (Posted a comment)
  • -email is unavailable- added by pertusus (Submitted the item)
  •  

    Votes

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only logged-in users can vote.

     

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

    History

    No changes have been made to this item

    Back to the top

    Powered by Savane 3.16-598c.
    Corresponding source code