Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines
Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.
REPEAT: Do NOT report bugs for outdated packages!
https://wiki.archlinux.org/title/Bug_reporting_guidelines
Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.
REPEAT: Do NOT report bugs for outdated packages!
FS#46191 - [glibc] getservbyname(3) seems buggy in 2.22-1
Attached to Project:
Arch Linux
Opened by Steffen Nurpmeso (sdaoden) - Thursday, 03 September 2015, 17:33 GMT
Last edited by Allan McRae (Allan) - Saturday, 20 February 2016, 01:54 GMT
Opened by Steffen Nurpmeso (sdaoden) - Thursday, 03 September 2015, 17:33 GMT
Last edited by Allan McRae (Allan) - Saturday, 20 February 2016, 01:54 GMT
|
DetailsDescription:
Additional info: * package version(s) 2.22-1 * config and/or log files etc. Steps to reproduce: This returns "58115" on my freshly installed ArchLinux box, even though /etc/services lists the correct port numbers (and getaddrinfo(3) returns them): #include <stdio.h> #include <netdb.h> int main(void){ struct servent *sep=getservbyname("pop3s","tcp"): if(sep != NULL) printf("port=%d\n", sep->s_port); return 0; } |
This task depends upon
Comment by Allan McRae (Allan) -
Saturday, 20 February 2016, 01:54 GMT
printf("port=%d\n", ntohs(sep->s_port));