Commit 5186da2
committed
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.1 parent 305aff0 commit 5186da2
File tree
2 files changed
+7
-0
lines changed- Lib
- Misc/NEWS.d/next/Library
2 files changed
+7
-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 | | |
| |||
Lines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
0 commit comments