Request for Enhancing LinkTarget Capability to Support Multi-Level Link Traversal #586

Open
opened 2026-01-29 22:14:11 +00:00 by claunia · 0 comments
Owner

Originally created by @sdcb on GitHub (Sep 22, 2023).

Dear developers,

I'm currently using the SharpCompress library for handling tar files with symbolic links. However, I've encountered a problem where LinkTarget only provides one level of link information.

For example, if A links to B, and B links to C, I can only find that A links to B. The LinkTarget for entry B is null, indicating that it doesn't have any link targets, which is not correct in my case.

For example this tgz file: https://storage.openvinotoolkit.org/repositories/openvino/packages/2023.0.1/linux/l_openvino_toolkit_ubuntu22_2023.0.1.11005.fa1c41994f3_x86_64.tgz

image

libopenvino_c.so should links to libopenvino_c.so.2301
and then libopenvino_c.so.2301 should links to libopenvino_c.so.2023.0.1
and libopenvino_c.so.2023.0.1 is the real file

However in SharpCompress,
libopenvino_c.so links to libopenvino_c.so.2301, which is correct
however libopenvino_c.so.2301 size is 0 but links to null:
which is wrong:
image

Originally created by @sdcb on GitHub (Sep 22, 2023). Dear developers, I'm currently using the SharpCompress library for handling tar files with symbolic links. However, I've encountered a problem where LinkTarget only provides one level of link information. For example, if A links to B, and B links to C, I can only find that A links to B. The LinkTarget for entry B is null, indicating that it doesn't have any link targets, which is not correct in my case. For example this tgz file: https://storage.openvinotoolkit.org/repositories/openvino/packages/2023.0.1/linux/l_openvino_toolkit_ubuntu22_2023.0.1.11005.fa1c41994f3_x86_64.tgz ![image](https://github.com/adamhathcock/sharpcompress/assets/1317141/269af530-0d05-4a3b-9bf9-d62780d388fd) libopenvino_c.so should links to libopenvino_c.so.2301 and then libopenvino_c.so.2301 should links to libopenvino_c.so.2023.0.1 and libopenvino_c.so.2023.0.1 is the real file However in `SharpCompress`, libopenvino_c.so links to libopenvino_c.so.2301, which is correct however libopenvino_c.so.2301 size is 0 but links to null: which is wrong: ![image](https://github.com/adamhathcock/sharpcompress/assets/1317141/7f24cd4e-1175-4df8-918f-7a2fc2fcd97c)
claunia added the enhancementup for grabs labels 2026-01-29 22:14:11 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/sharpcompress#586