Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 18 Feb 2010 11:55:39 +0200
From:      Jaakko Heinonen <jh@FreeBSD.org>
To:        Bruce Evans <brde@optusnet.com.au>
Cc:        svn-src-head@FreeBSD.org, Poul-Henning Kamp <phk@phk.freebsd.dk>, src-committers@FreeBSD.org, svn-src-all@FreeBSD.org
Subject:   Re: svn commit: r203990 - head/lib/libc/sys
Message-ID:  <20100218095538.GA2318@a91-153-117-195.elisa-laajakaista.fi>
In-Reply-To: <20100218064545.J2074@besplex.bde.org>
References:  <6413.1266433105@critter.freebsd.dk> <20100218064545.J2074@besplex.bde.org>

next in thread | previous in thread | raw e-mail | index | archive | help
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



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