Commit 8e61d0b
gh-141707: Fix tarfile type corruption with GNU long names
When processing GNU long name headers, the name field in the second
header contains garbage data. The V7 directory detection logic in
frombuf() would incorrectly mark regular files as directories if this
garbage ended with '/'. Re-apply the detection after patching the
actual long name to correct any type corruption.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>1 parent 305aff0 commit 8e61d0b
1 file changed
+6
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1410 | 1410 | | |
1411 | 1411 | | |
1412 | 1412 | | |
| 1413 | + | |
| 1414 | + | |
| 1415 | + | |
| 1416 | + | |
| 1417 | + | |
| 1418 | + | |
1413 | 1419 | | |
1414 | 1420 | | |
1415 | 1421 | | |
| |||
0 commit comments