Bug 97995 - Bug in tools/rpmsignature
Bug in tools/rpmsignature
Status: CLOSED WONTFIX
Product: Red Hat Raw Hide
Classification: Retired
Component: rpm (Show other bugs)
1.0
All Linux
low Severity high
: ---
: ---
Assigned To: Jeff Johnson
Mike McLean
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2003-06-25 00:20 EDT by Chris Chabot
Modified: 2005-10-31 17:00 EST (History)
0 users

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2003-06-25 13:18:58 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)

  None (edit)
Description Chris Chabot 2003-06-25 00:20:12 EDT
in rpmsignature.c it reads
if (rpmReadSignature(fdi, &sig, lead.signature_type, NULL) !=  RPMRC_OK) {
   // do stuff..

but it should be
if (rpmReadSignature(fdi, &sig, lead.signature_type, NULL) !=  RPMRC_OK) {
  exit(1)
}
// do stuff..

Now, if the sig is read in correctly, it exits with exit code 1
Comment 1 Jeff Johnson 2003-06-25 13:18:58 EDT
rpmsignature.c ain't been changed for >5 years, while rpm has.

I'm not sure this is worh fixing, rpm-4.1 and later use a whole
different interface and API; rpmsignature has never been more than
an illustration of a now largely defunct (but still present) API.

See rpm2cpio.sh for an example of how to extract the signature
blob from shell, not hard.

Note You need to log in before you can comment on or make changes to this bug.