Arch Linux

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!
Tasklist

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
Task Type Bug Report
Category Upstream Bugs
Status Closed
Assigned To Allan McRae (Allan)
Architecture x86_64
Severity Medium
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:



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

Closed by  Allan McRae (Allan)
Saturday, 20 February 2016, 01:54 GMT
Reason for closing:  Not a bug
Comment by Allan McRae (Allan) - Saturday, 20 February 2016, 01:54 GMT
printf("port=%d\n", ntohs(sep->s_port));

Loading...