Bug 105490

Summary: getservent* broken
Product: [openSUSE] SUSE LINUX 10.0 Reporter: Jan Engelhardt <jengelh>
Component: BasesystemAssignee: Thorsten Kukuk <kukuk>
Status: VERIFIED INVALID QA Contact: E-mail List <qa-bugs>
Severity: Normal    
Priority: P5 - None    
Version: Beta 1   
Target Milestone: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Found By: Beta-Customer Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---
Attachments: Testcase

Description Jan Engelhardt 2005-08-18 13:17:39 UTC
The getservent* framework seems broken. Testcase attached. Output for me is:

15:14 shanghai:~/Coding # a.out
#1 Port 22 is: pcanywherestat
#2 SSH port is: 5632

Where it should preferably be:
Port 22 is: ssh
SSH port is: 22

Package info:
15:16 shanghai:~/Coding # rpm -q glibc glibc-devel gcc binutils
glibc-2.3.5-33
glibc-devel-2.3.5-33
gcc-4.0.2_20050802-5
binutils-2.16.91.0.2-5
Comment 1 Jan Engelhardt 2005-08-18 13:18:02 UTC
Created attachment 46480 [details]
Testcase
Comment 2 Thorsten Kukuk 2005-08-18 13:25:16 UTC
RTFM (Hint: network byte order != x86 byte order)

Between, "Hardware == all" is also a wrong, since have enough
architectures which works with the correct endianess.