This repository was archived by the owner on Jan 15, 2025. It is now read-only.
Commit 16b2125
strip linkname on hard links (#49)
It seems hard links are defined using relative paths from the root of the tar file... that absolutely makes sense since it's needed always an absolute reference inside the tar file itself but the initial slash is mostly useless because it will be always there :-P
```
> tar -tvf syslinux-6.03.tar.gz |grep bios/linux
drwxrwxr-x hpa/hpa 0 2014-10-06 18:32 syslinux-6.03/bios/linux/
-rwxrwxr-x hpa/hpa 213600 2014-10-06 18:32 syslinux-6.03/bios/linux/syslinux-nomtools
hrwxrwxr-x hpa/hpa 0 2014-10-06 18:32 syslinux-6.03/bios/linux/syslinux enlace a syslinux-6.03/bios/linux/syslinux-nomtools
```
Problem is that my previous commit introduced a regression here by not considering this use case. This change now fix it by allways strip `linkname` if it's from a hard link.1 parent 861969b commit 16b2125
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
48 | 48 | | |
49 | 49 | | |
50 | 50 | | |
51 | | - | |
| 51 | + | |
52 | 52 | | |
53 | 53 | | |
54 | 54 | | |
| |||
0 commit comments