This is the mail archive of the glibc-bugs@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug libc/15374] New: Make getent services compliant with RFC 6335 section 5.1


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]