Skip to content

Commit

Permalink
fix rpmdump output
Browse files Browse the repository at this point in the history
`rpmdump` prints the OS type field as architecture type.
Print the correct value.
  • Loading branch information
teknoraver authored and pmatilai committed Nov 6, 2024
1 parent 3c06b9e commit 0dda395
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/rpmdump.cc
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ static int readlead(int fd)
printf("Version %d.%d\n", lead.major, lead.minor);
printf("Type: %hu\n", ntohs(lead.type));
printf("Name: %s\n", lead.name);
printf("Arch: %hu\n", ntohs(lead.osnum));
printf("Arch: %hu\n", ntohs(lead.archnum));
printf("OS: %hu\n", ntohs(lead.osnum));
printf("Sigtype: %hu\n", ntohs(lead.signature_type));
printf("\n");
Expand Down

0 comments on commit 0dda395

Please sign in to comment.