Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 15 Dec 2001 02:22:51 +0300
From:      "Andrey A. Chernov" <ache@nagual.pp.ru>
To:        Ruslan Ermilov <ru@FreeBSD.ORG>
Cc:        Guido van Rooij <guido@gvr.org>, standards@FreeBSD.ORG
Subject:   Re: Recent POSIX.1-2001 implementation of strtol(3) breaks POLA (was: Re: cvs commit: src/etc/periodic/security 550.ipfwlimit 650.ip6fwlimit)
Message-ID:  <20011214232251.GA14990@nagual.pp.ru>
In-Reply-To: <20011214230229.GA14380@nagual.pp.ru>
References:  <200112140858.fBE8wL596075@freefall.freebsd.org> <20011214115711.A34932@gvr.gvr.org> <20011214135243.B64853@sunbay.com> <20011214125438.A35615@gvr.gvr.org> <20011214142928.A69958@sunbay.com> <20011214154506.A79266@sunbay.com> <20011214230229.GA14380@nagual.pp.ru>

next in thread | previous in thread | raw e-mail | index | archive | help
On Sat, Dec 15, 2001 at 02:02:30 +0300, Andrey A. Chernov wrote:

> > $ /usr/bin/test "" -eq 0
> > /usr/bin/test: integer expression expected before -eq
> 
> It seems that Linux test does it in the right way. Good news is that
> strtol()'s POSIX change find the bug.

See just fixed test.c v1.36 (from CVS log):

POSIX strto*() functions MAY return EINVAL, so don't assume that only one
errno from them allowed and it is always ERANGE

-- 
Andrey A. Chernov
http://ache.pp.ru/

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-standards" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20011214232251.GA14990>