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:  None Priority:  5 - Normal
Severity:  3 - Normal Status:  None
Privacy:  Public Assigned to:  None
Open/Closed:  Open Operating System:  None

Add a New Comment(Rich Markup)
   

You are not logged in

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

 

Thu 28 Dec 2017 11:53:48 PM UTC, comment #2:

see also
https://github.com/mono/mono/issues/6349

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>

 

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

Attach Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

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

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

    Only logged-in users can vote.

     

     

     

    No changes have been made to this item

    Back to the top


    Powered by Savane 3.3