From 0dda395cbcc78ec89fffbe2f7e37d38b693bfe2a Mon Sep 17 00:00:00 2001 From: Matteo Croce Date: Tue, 5 Nov 2024 18:33:16 +0100 Subject: [PATCH] fix rpmdump output `rpmdump` prints the OS type field as architecture type. Print the correct value. --- tools/rpmdump.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/rpmdump.cc b/tools/rpmdump.cc index 8c3b7d6e29..329ce5978a 100644 --- a/tools/rpmdump.cc +++ b/tools/rpmdump.cc @@ -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");