Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Stop using gethostbyname, deprecated in glibc #1070

Open
sunweaver opened this issue Jan 22, 2024 · 0 comments
Open

Stop using gethostbyname, deprecated in glibc #1070

sunweaver opened this issue Jan 22, 2024 · 0 comments

Comments

@sunweaver
Copy link
Member

Porting over from https://bugs.x2go.org/cgi-bin/bugreport.cgi?bug=778

On So 01 Feb 2015 13:40:59 CET, Nable wrote:

Hi, Mike!

I'm looking at this and previous bug (https://bugs.x2go.org/777) and can't stop wondering
whether applications should really contain workarounds for bugs in
system libraries. Isn't it better to just depend on newer version
of library (that has fixes for currently known bugs)?

There are a lot of older bugs in glibc (that are fixed in current
version), does it mean that applications should be bloated with
workarounds for such bugs just in order to work more safely on machines
where users don't pay enough attention to updates?

That is a true way of reasoning...

However, gethostbyname is deprecated in glibc and not really IPv4/IPv6
compliant [1].

Mike

[1] http://beej.us/guide/bgnet/output/html/multipage/syscalls.html#getaddrinfo

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant