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

Add a New Comment Rich Markup
   

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>

 

(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)
  •  

    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.

     

    No changes have been made to this item

    Back to the top

    Powered by Savane 3.13-b921.
    Corresponding source code