From owner-freebsd-standards Fri Dec 14 15:22:59 2001 Delivered-To: freebsd-standards@freebsd.org Received: from nagual.pp.ru (pobrecita.freebsd.ru [194.87.13.42]) by hub.freebsd.org (Postfix) with ESMTP id A08A837B405; Fri, 14 Dec 2001 15:22:55 -0800 (PST) Received: (from ache@localhost) by nagual.pp.ru (8.11.6/8.11.6) id fBENMrF15033; Sat, 15 Dec 2001 02:22:54 +0300 (MSK) (envelope-from ache) Date: Sat, 15 Dec 2001 02:22:51 +0300 From: "Andrey A. Chernov" To: Ruslan Ermilov Cc: Guido van Rooij , 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> 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> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20011214230229.GA14380@nagual.pp.ru> User-Agent: Mutt/1.3.23.2i Sender: owner-freebsd-standards@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG 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