From owner-svn-src-head@FreeBSD.ORG Thu Feb 25 19:51:46 2010 Return-Path: Delivered-To: svn-src-head@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 8F054106564A; Thu, 25 Feb 2010 19:51:46 +0000 (UTC) (envelope-from jh@FreeBSD.org) Received: from gw02.mail.saunalahti.fi (gw02.mail.saunalahti.fi [195.197.172.116]) by mx1.freebsd.org (Postfix) with ESMTP id 4B88D8FC25; Thu, 25 Feb 2010 19:51:46 +0000 (UTC) Received: from a91-153-117-195.elisa-laajakaista.fi (a91-153-117-195.elisa-laajakaista.fi [91.153.117.195]) by gw02.mail.saunalahti.fi (Postfix) with SMTP id C33A7139529; Thu, 25 Feb 2010 21:51:38 +0200 (EET) Date: Thu, 25 Feb 2010 21:51:38 +0200 From: Jaakko Heinonen To: Bruce Evans Message-ID: <20100225195138.GA3323@a91-153-117-195.elisa-laajakaista.fi> References: <6413.1266433105@critter.freebsd.dk> <20100218064545.J2074@besplex.bde.org> <20100218095538.GA2318@a91-153-117-195.elisa-laajakaista.fi> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20100218095538.GA2318@a91-153-117-195.elisa-laajakaista.fi> User-Agent: Mutt/1.5.20 (2009-06-14) Cc: svn-src-head@FreeBSD.org, Poul-Henning Kamp , src-committers@FreeBSD.org, svn-src-all@FreeBSD.org Subject: Re: svn commit: r203990 - head/lib/libc/sys X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 25 Feb 2010 19:51:46 -0000 On 2010-02-18, Jaakko Heinonen wrote: > > namei() returns EISDIR for "/" (due to DELETE and and the special handling > > of the degenerate case which includes "/" and not much else, else the bug > > would affect more cases). > > This causes a problem also for mkdir(2), rmdir(2) and rename(2). All of > them incorrectly return EISDIR for "/". Here is a patch which attempts to fix mkdir(2), rmdir(2), rename(2) and unlink(2) errno return value for "/". http://people.freebsd.org/~jh/patches/lookup-root.diff -- Jaakko