[Bug nscd/23757] New: services number stored in wrong endianness
dj at redhat dot com
sourceware-bugzilla@sourceware.org
Wed Oct 10 22:26:00 GMT 2018
https://sourceware.org/bugzilla/show_bug.cgi?id=23757
Bug ID: 23757
Summary: services number stored in wrong endianness
Product: glibc
Version: unspecified
Status: NEW
Severity: normal
Priority: P2
Component: nscd
Assignee: unassigned at sourceware dot org
Reporter: dj at redhat dot com
CC: drepper.fsp at gmail dot com
Target Milestone: ---
If you look up a service number of, say, 10000, the correct entry in
/etc/services is used by nscd, but the key in the database is, in this example,
4135:
$ grep 10000 /etc/services
service-example 10000/tcp
$ getent services 10000/tcp
service-example 10000/tcp
$ getent services 10000/udp
$ /usr/sbin/nscd -d
Wed 10 Oct 2018 05:21:34 PM EDT - 5833: GETSERVBYPORT (4135/udp)
$ strings /var/db/nscd/services
service-example
4135/tcp
4135/udp
Note that 10000 is 0x2710 and 4135 is 0x1027 so it looks like there's a missing
ntohs() call somewhere.
--
You are receiving this mail because:
You are on the CC list for the bug.
More information about the Glibc-bugs
mailing list