This is the mail archive of the
glibc-bugs@sourceware.org
mailing list for the glibc project.
[Bug libc/15374] New: Make getent services compliant with RFC 6335 section 5.1
- From: "cambridge at users dot sf.net" <sourceware-bugzilla at sourceware dot org>
- To: glibc-bugs at sourceware dot org
- Date: Wed, 17 Apr 2013 09:16:13 +0000
- Subject: [Bug libc/15374] New: Make getent services compliant with RFC 6335 section 5.1
- Auto-submitted: auto-generated
http://sourceware.org/bugzilla/show_bug.cgi?id=15374
Bug #: 15374
Summary: Make getent services compliant with RFC 6335 section
5.1
Product: glibc
Version: 2.18
Status: NEW
Severity: normal
Priority: P2
Component: libc
AssignedTo: unassigned@sourceware.org
ReportedBy: cambridge@users.sf.net
CC: drepper.fsp@gmail.com
Classification: Unclassified
RFC 6335 section 5.1 permits service names with leading digits.
nss/getent.c does not, as they would be treated as port numbers:
791 if (isdigit (key[i][0]))
792 serv = getservbyport (htons (atol (key[i])), proto);
793 else
794 serv = getservbyname (key[i], proto);
Checking IANA, there are currently 28 service names registered that begin with
a digit, for example 3com-tsmux and 3gpp-cbsp.
--
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.