[Rpm-maint] [rpm-software-management/rpm] Eliminate use of obsolete gethostbyname() function (#1428)

Panu Matilainen notifications at github.com
Mon Nov 9 08:32:02 UTC 2020

We only actually used gethostbyname() for canonicalizing buildhost,
convert that to use getaddrinfo() instead: this is not a particularly
useful or interesting field so just grab whatever result comes first.

The other "use" was to initialize name services, but as we don't need
or use hostnames for any operation, we can just as well drop it. User
and group names are what we care about.
You can view, comment on, or merge this pull request online at:


-- Commit Summary --

  * Eliminate use of obsolete gethostbyname() function

-- File Changes --

    M build/build.c (20)
    M configure.ac (2)
    M lib/rpmug.c (1)

-- Patch Links --


You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rpm.org/pipermail/rpm-maint/attachments/20201109/8db08f68/attachment.html>

More information about the Rpm-maint mailing list