This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: [PATCH][BZ #15374] Make getent services compliant with RFC 6335 section 5.1
- From: Florian Weimer <fweimer at redhat dot com>
- To: Roland McGrath <roland at hack dot frob dot com>, OndÅej BÃlka <neleai at seznam dot cz>
- Cc: libc-alpha at sourceware dot org
- Date: Thu, 31 Oct 2013 22:13:13 +0100
- Subject: Re: [PATCH][BZ #15374] Make getent services compliant with RFC 6335 section 5.1
- Authentication-results: sourceware.org; auth=none
- References: <20131020180745 dot GA18200 at domone dot podge> <527256A2 dot 40902 at redhat dot com> <20131031133244 dot GA19495 at domone dot podge> <52725CB7 dot 30300 at redhat dot com> <20131031150144 dot GA20903 at domone dot podge> <20131031202848 dot 6F4B274699 at topped-with-meat dot com>
On 10/31/2013 09:28 PM, Roland McGrath wrote:
A leading - is not valid. So use strtoul.
strtoul accepts a leading "-", too.
--
Florian Weimer / Red Hat Product Security Team