BUG - First character of filenames missing after extraction #1

Closed
opened 2026-08-20 10:39:38 +01:00 by russellteapot · 1 comment

Steps to reproduce

  1. Create two files named first.txt and second.txt
  2. Run par archive.par first.txt second.txt
  3. Delete the original txt files
  4. Extract the archive with par -x archive.par

Expected outcome

Two files named first.txt and second.txt.

Observed outcome

The two extracted files are named irst.txt and econd.txt. This doesnt happen when the files are inside a folder prior to archive creation (e.g par archive2.par dummy/*): in that case the filenames after extraction are complete.

In both cases data inside the files seem to be correctly preserved.

Additional data

Hexdump of archive.par:

00000000: 0102 0009 6563 6f6e 642e 7478 7420 0000  ....econd.txt ..
00000010: 0000 0869 7273 742e 7478 7427 0000 0000  ...irst.txt'....
00000020: 7365 636f 6e64 0a66 6972 7374 0a         second.first.

Hexdump of archive2.par:

00000000: 0102 0009 6669 7273 742e 7478 7422 0000  ....first.txt"..
00000010: 0000 0a73 6563 6f6e 642e 7478 7428 0000  ...second.txt(..
00000020: 0000 6669 7273 740a 7365 636f 6e64 0a    ..first.second.
# Steps to reproduce 1. Create two files named `first.txt` and `second.txt` 2. Run `par archive.par first.txt second.txt` 3. Delete the original `txt` files 4. Extract the archive with `par -x archive.par` # Expected outcome Two files named `first.txt` and `second.txt`. # Observed outcome The two extracted files are named `irst.txt` and `econd.txt`. This doesnt happen when the files are inside a folder prior to archive creation (e.g `par archive2.par dummy/*`): in that case the filenames after extraction are complete. In both cases data inside the files seem to be correctly preserved. # Additional data Hexdump of `archive.par`: ``` 00000000: 0102 0009 6563 6f6e 642e 7478 7420 0000 ....econd.txt .. 00000010: 0000 0869 7273 742e 7478 7427 0000 0000 ...irst.txt'.... 00000020: 7365 636f 6e64 0a66 6972 7374 0a second.first. ``` Hexdump of `archive2.par`: ``` 00000000: 0102 0009 6669 7273 742e 7478 7422 0000 ....first.txt".. 00000010: 0000 0a73 6563 6f6e 642e 7478 7428 0000 ...second.txt(.. 00000020: 0000 6669 7273 740a 7365 636f 6e64 0a ..first.second. ```
Owner

Fixed by 0f61e9f2c0.

Fixed by 0f61e9f2c0.
Sign in to join this conversation.
No labels
No milestone
No project
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
motherpackers/cc-par#1
No description provided.