Skip to content

Commit

Permalink
fix rpmdump output
Browse files Browse the repository at this point in the history
`rpmdump` prints the OS type fiels as architecture type.
Print the correct value.
  • Loading branch information
teknoraver committed Nov 5, 2024
1 parent 02f09b3 commit 7d57e52
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 7d57e52

Please sign in to comment.