plexus-archiver icon indicating copy to clipboard operation
plexus-archiver copied to clipboard

TAR: Implement extraction and archiving of hardlinks.

Open wilx opened this issue 2 years ago • 3 comments

This implements hardlinks in TAR. There is also a test to prove it.

wilx avatar May 25 '23 19:05 wilx

My intention with this is to be able to create TAR archives with hardlinks with maven-assembly-plugin.

However, I am not sure if this is the best possible way to do this. I am not sure if it fits right into the PlexusIoResource framework.

wilx avatar May 25 '23 19:05 wilx

Also we need to be extra careful when extracting multiple copies instead of creating hard links. If a tar file contains single 1 MB file and thousands of hard links, then extracted (if files are copied) could be 1 GB, possibly resulting in DoS attack.

plamentotev avatar May 27 '23 08:05 plamentotev

FYI, I will not be pursuing this pull request further. I was curious if it could be done. But it is unclear to me how to do this so that it matches all the requirements and design criteria of the library. Feel free to pick it up or close it.

wilx avatar Aug 21 '23 10:08 wilx