From owner-freebsd-current Fri Aug 9 1: 5:39 2002 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id B9F9637B400 for ; Fri, 9 Aug 2002 01:05:37 -0700 (PDT) Received: from nagual.pp.ru (pobrecita.freebsd.ru [194.87.13.42]) by mx1.FreeBSD.org (Postfix) with ESMTP id AE82C43E65 for ; Fri, 9 Aug 2002 01:05:36 -0700 (PDT) (envelope-from ache@pobrecita.freebsd.ru) Received: from pobrecita.freebsd.ru (ache@localhost [127.0.0.1]) by nagual.pp.ru (8.12.5/8.12.5) with ESMTP id g7985QG4003504; Fri, 9 Aug 2002 12:05:31 +0400 (MSD) (envelope-from ache@pobrecita.freebsd.ru) Received: (from ache@localhost) by pobrecita.freebsd.ru (8.12.5/8.12.5/Submit) id g7985Pxs003503; Fri, 9 Aug 2002 12:05:25 +0400 (MSD) (envelope-from ache) Date: Fri, 9 Aug 2002 12:05:25 +0400 From: "Andrey A. Chernov" To: Poul-Henning Kamp Cc: current@FreeBSD.ORG Subject: Re: phk malloc() sometimes forget to set errno Message-ID: <20020809080524.GA3293@nagual.pp.ru> References: <20020807232750.GA1168@nagual.pp.ru> <10593.1028877062@critter.freebsd.dk> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <10593.1028877062@critter.freebsd.dk> User-Agent: Mutt/1.5.1i Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Fri, Aug 09, 2002 at 09:11:02 +0200, Poul-Henning Kamp wrote: > In message <20020807232750.GA1168@nagual.pp.ru>, "Andrey A. Chernov" writes: > >I found at least one case: > > Try this patch: I doubt about choosed EPERM code. According to intro(2) it refers to some priviledges required for operation, but recursive call is not restricted due to priviledges. What about of other code, like EFAULT? Other than that it looks good, please commit. -- Andrey A. Chernov http://ache.pp.ru/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message