bugGNU tar - Bugs: bug #67014, with long paths above PATH_MAX tar...

 
 

bug #67014: with long paths above PATH_MAX tar works but untar fails

Submitter:  Laurent Lyaudet <llyaudet>
Submitted:  Fri 11 Apr 2025 10:15:03 AM UTC
   
 
Category:  None Severity:  3 - Normal
Item Group:  None Status:  None
Privacy:  Public Assigned to:  None
Open/Closed:  Open
* Mandatory Fields

Add a New Comment Rich Markup
   

Fri 11 Apr 2025 10:15:03 AM UTC, original submission:  

Hello :),

With long paths above PATH_MAX, tar works but untar fails.
(Simple bash script to reproduce included.)
Using bash `mkdir -p` built-in command, it should work.
I don't know if tar uses a .so instead.
Long paths above PATH_MAX can be created on a GNU/Linux computer quite easily.
All you need is to use cd more frequently to avoid too long relative path at a time.
I'm using Ubuntu 24.10, gnome-terminal and bash on a MSI GL73-8SD laptop.

tar version is:
```
$ tar --version
tar (GNU tar) 1.35
Copyright © 2023 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <https://gnu.org/licenses/gpl.html>.
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.

Écrit par John Gilmore et Jay Fenlason.
```

It would be nice to make untar as resilient as tar to long paths
I joined my bash script `mkdir_cd_tar_untar_above_4096.sh`.
Original discussion that led to this bug report is here:
https://discourse.ubuntu.com/t/increasing-path-max-to-8092-and-name-max-to-512/58748

Let me know if I can help further :)

Best regards,
    Laurent Lyaudet

Laurent Lyaudet <llyaudet>

 

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

Attach Files:
   
   
Comment:
   

Attached Files
file #57130:  mkdir_cd_tar_untar_above_4096.sh added by llyaudet (14KiB - application/x-shellscript)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by llyaudet (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.

     

    Follows 1 latest change.

    Date Changed by Updated Field Previous Value => Replaced by
    2025-04-11 llyaudet Attached File- Added mkdir_cd_tar_untar_above_4096.sh, #57130

    Back to the top

    Powered by Savane 3.15-4cd8.
    Corresponding source code