[Rpm-maint] [rpm-software-management/rpm] rpmdsRpmlib has inconsistent arg usage (Issue #2112)
Nick
notifications at github.com
Wed Jun 29 21:19:18 UTC 2022
RHEL6:
```cpp
static rpmds baseDependencies = NULL;
if(baseDependencies == NULL) {
rpmdsRpmlib(&baseDependencies, NULL); // returns 0
}
```
RHEL7 and up:
```cpp
static rpmds baseDependencies = NULL;
if(baseDependencies == NULL) {
rpmdsRpmlib(&baseDependencies, NULL); // does not return 0
}
```
This is unexpected. However! If we flip the arguments, it works fine on RHEL7 and up:
```cpp
static rpmds baseDependencies = NULL;
if(baseDependencies == NULL) {
rpmdsRpmlib(NULL, &baseDependencies); // returns 0
}
```
Why? The type of `rpmdsRpmlib` hasn't changed between now and then. The name of the args hasn't changed. Is the documentation wrong? What gives?
--
Reply to this email directly or view it on GitHub:
https://github.com/rpm-software-management/rpm/issues/2112
You are receiving this because you are subscribed to this thread.
Message ID: <rpm-software-management/rpm/issues/2112 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rpm.org/pipermail/rpm-maint/attachments/20220629/8b3b0abc/attachment.html>
More information about the Rpm-maint
mailing list