Project

General

Profile

Bug #2783

gethostbyname deprecated, should use getaddrinfo

Added by stbuehler about 1 month ago. Updated about 1 month ago.

Status:
Patch Pending
Priority:
Normal
Assignee:
-
Category:
core
Target version:
Start date:
2017-01-14
Due date:
% Done:

0%

Missing in 1.5.x:

Description

rpmlint results from https://build.opensuse.org/package/show/home:stbuehler:lighttpd-1.4.x/lighttpd:

lighttpd.x86_64: I: binary-or-shlib-calls-gethostbyname /usr/lib64/lighttpd/mod_scgi.so
lighttpd.x86_64: I: binary-or-shlib-calls-gethostbyname /usr/lib64/lighttpd/mod_fastcgi.so
lighttpd.x86_64: I: binary-or-shlib-calls-gethostbyname /usr/sbin/lighttpd
The binary calls gethostbyname(). Please port the code to use getaddrinfo().

History

#1 Updated by gstrauss about 1 month ago

will use inet_pton(), where available, for the IPv4 hosts, too.

#2 Updated by gstrauss about 1 month ago

  • Category set to core

#3 Updated by gstrauss about 1 month ago

network.c will need to be updated to use getaddrinfo(), where available, for IPv4, in addition to IPv6.
mod_fastcgi.c and mod_scgi.c can use inet_pton(), where available, as they operate on IPs.

#4 Updated by gstrauss about 1 month ago

  • Status changed from New to Patch Pending

Also available in: Atom