Commit 5e42853
authored
Set entry type when adding to the tar file (#2859)
We need to explicitly set this because the header initializes with all
null bytes. When this is not set, the python `tarfile` module can fail
to process the file properly due to treating an entry of type `AREGTYPE`
that also ends in a trailing slash as a directory instead of a regular
file under some very specific circumstances.
See python/cpython#141707 for more details
Fixes #28551 parent a2d38e1 commit 5e42853
1 file changed
+1
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
388 | 388 | | |
389 | 389 | | |
390 | 390 | | |
| 391 | + | |
391 | 392 | | |
392 | 393 | | |
393 | 394 | | |
| |||
0 commit comments