Change #271887
| Category | gtar |
| Changed by | Paul Eggert <eggert@cs.ucla.edu> |
| Changed at | Sat 20 Jun 2026 09:29:25 |
| Repository | git://git.savannah.gnu.org/tar.git |
| Project | gtar |
| Branch | master |
| Revision | 67981bbb1587803bb1e029393d2228492cef8c4f |
Comments
tar: ignore nonzero sizes in hard links etc Problem reported by Antonio Teixeira. * src/list.c (read_header): When POSIX says a size field must be zero or does not represent a data count, treat it as zero. * tests/extrac32.at: Update to match new behavior. We now treat hard link sizes as zero even when the size fields are nonzero, and this means the “injected” file is treated as valid regardless of whether we list or extract. * tests/extrac34.at: New test. * tests/Makefile.am (TESTSUITE_AT), tests/testsuite.at: Add it.
Changed files
- NEWS
- THANKS
- src/list.c
- tests/Makefile.am
- tests/extrac32.at
- tests/extrac34.at
- tests/testsuite.at