From owner-svn-src-head@FreeBSD.ORG Thu Feb 18 09:55: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 9EEA2106566C; Thu, 18 Feb 2010 09:55:46 +0000 (UTC) (envelope-from jh@FreeBSD.org) Received: from gw03.mail.saunalahti.fi (gw03.mail.saunalahti.fi [195.197.172.111]) by mx1.freebsd.org (Postfix) with ESMTP id 5BC508FC15; Thu, 18 Feb 2010 09:55:46 +0000 (UTC) Received: from a91-153-117-195.elisa-laajakaista.fi (a91-153-117-195.elisa-laajakaista.fi [91.153.117.195]) by gw03.mail.saunalahti.fi (Postfix) with SMTP id 9EC2A2167C8; Thu, 18 Feb 2010 11:55:39 +0200 (EET) Date: Thu, 18 Feb 2010 11:55:39 +0200 From: Jaakko Heinonen To: Bruce Evans Message-ID: <20100218095538.GA2318@a91-153-117-195.elisa-laajakaista.fi> References: <6413.1266433105@critter.freebsd.dk> <20100218064545.J2074@besplex.bde.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20100218064545.J2074@besplex.bde.org> 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, 18 Feb 2010 09:55:46 -0000 On 2010-02-18, Bruce Evans wrote: > > critter phk> ./a.out > > a.out: Told you so: Is a directory > > Better fix the kernel bug than break the documentation then. Seconded. > 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 "/". An open PR and some discussion: http://www.freebsd.org/cgi/query-pr.cgi?pr=kern/59739 http://lists.freebsd.org/pipermail/freebsd-hackers/2009-November/029958.html -- Jaakko