Project

General

Profile

Actions

Bug #2783

closed

gethostbyname deprecated, should use getaddrinfo

Added by stbuehler almost 8 years ago. Updated over 7 years ago.

Status:
Fixed
Priority:
Normal
Category:
core
Target version:
ASK QUESTIONS IN Forums:

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().
Actions #1

Updated by gstrauss almost 8 years ago

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

Actions #2

Updated by gstrauss almost 8 years ago

  • Category set to core
Actions #3

Updated by gstrauss almost 8 years 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.

Actions #4

Updated by gstrauss almost 8 years ago

  • Status changed from New to Patch Pending
Actions #5

Updated by gstrauss over 7 years ago

  • Status changed from Patch Pending to Fixed
  • % Done changed from 0 to 100
Actions

Also available in: Atom