*BSD News Article 47528


Return to BSD News archive

Path: sserve!newshost.anu.edu.au!harbinger.cc.monash.edu.au!news.uwa.edu.au!classic.iinet.com.au!news.uoregon.edu!europa.chnt.gtegsc.com!news.mathworks.com!fu-berlin.de!zrz.TU-Berlin.DE!cs.tu-berlin.de!fauern!news.tu-chemnitz.de!irz401!uriah.heep!bonnie.heep!not-for-mail
From: j@bonnie.heep.sax.de (J Wunsch)
Newsgroups: comp.unix.bsd.freebsd.misc
Subject: Re: "foo is a directory" error
Date: 27 Jul 1995 10:08:46 +0200
Organization: Private U**x site, Dresden.
Lines: 18
Message-ID: <3v7hie$qk0@bonnie.tcd-dresden.de>
References: <npu48aada8.fsf@enci.ucalgary.ca>
Reply-To: joerg_wunsch@uriah.heep.sax.de
NNTP-Posting-Host: 192.109.108.139
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 8bit

Gord Matzigkeit <gord@enci.ucalgary.ca> wrote:

>bartok% mkdir hello; touch hello/foo ; /bin/rm -rf hello/
>rm: hello/: Is a directory

A known problem, has been discussed long ago.  No easy solution, the
problem is deep in namei() in the kernel and related to the way
namei() is interpreting null pathname components (the trailing slash
implies a null component after it from namei()'s point of view).

After a few experiments, it has been decided that the curent state of
the art will stay, since all other solutions opened a can of worms
elsewhere.
-- 
cheers, J"org                      private:   joerg_wunsch@uriah.heep.sax.de
                                   http://www.sax.de/~joerg/

Never trust an operating system you don't have sources for. ;-)