[Rpm-maint] [rpm-software-management/rpm] Fix rpmkeys result wrapping around, potentially returning 0 on fail (PR #4177)

Panu Matilainen notifications at github.com
Thu Apr 9 09:35:59 UTC 2026


If the number of failures is divisible by 256, the final exit code returned to the shell wraps around, returning zero despite failures. We already have a special purpose macro for this, just use it. Add a test while at it.

Fixes: #4176
You can view, comment on, or merge this pull request online at:

  https://github.com/rpm-software-management/rpm/pull/4177

-- Commit Summary --

  * Fix rpmkeys result wrapping around, potentially returning 0 on fail

-- File Changes --

    M tests/rpmsigdig.at (12)
    M tools/rpmkeys.cc (2)

-- Patch Links --

https://github.com/rpm-software-management/rpm/pull/4177.patchhttps://github.com/rpm-software-management/rpm/pull/4177.diff
-- 
Reply to this email directly or view it on GitHub:
https://github.com/rpm-software-management/rpm/pull/4177
You are receiving this because you are subscribed to this thread.

Message ID: <rpm-software-management/rpm/pull/4177 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rpm.org/pipermail/rpm-maint/attachments/20260409/ff2af344/attachment.htm>


More information about the Rpm-maint mailing list