[Rpm-maint] [rpm-software-management/rpm] Make fdSeek return 0 on success, -1 on error (#1390)

Panu Matilainen notifications at github.com
Fri Oct 9 07:31:54 UTC 2020


This code eliminates a false positive failure when the destination position is > 2GiB. This is done by changing the contract for `Fseek`. Now it returns `0` on success instead of an `int` offset. Care should be used to interpret the result as there is a difference in semantics between the POSIX `fseek(2)`. Existing code is correct: negative results are still failures.
You can view, comment on, or merge this pull request online at:

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

-- Commit Summary --

  * Make fdSeek return 0 on success, -1 on error

-- File Changes --

    M rpmio/rpmio.c (2)

-- Patch Links --

https://github.com/rpm-software-management/rpm/pull/1390.patch
https://github.com/rpm-software-management/rpm/pull/1390.diff

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/rpm-software-management/rpm/pull/1390
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rpm.org/pipermail/rpm-maint/attachments/20201009/a1bca88e/attachment.html>


More information about the Rpm-maint mailing list