*BSD News Article 13251


Return to BSD News archive

Path: sserve!newshost.anu.edu.au!munnari.oz.au!news.Hawaii.Edu!ames!agate!agate.berkeley.edu!cgd
From: cgd@erewhon.CS.Berkeley.EDU (Chris G. Demetriou)
Newsgroups: comp.os.386bsd.bugs
Subject: Re: patch for bin/rm/rm.c
Date: 23 Mar 93 16:46:09
Organization: Kernel Hackers 'r' Us
Lines: 23
Message-ID: <CGD.93Mar23164609@erewhon.CS.Berkeley.EDU>
References: <1oligtINN6mj@ftp.UU.NET> <f0Yl6J8@quack.kfu.com>
NNTP-Posting-Host: erewhon.cs.berkeley.edu
In-reply-to: dfox@quack.kfu.com's message of 23 Mar 1993 21:51:11 UTC

In article <f0Yl6J8@quack.kfu.com> dfox@quack.kfu.com (David Fox) writes:
>I'm not sure if this is the way it's supposed
>to work.

that is the correct behavior for rmdir.

rmdir foo/

is equivalent to

rmdir foo/.

which, it should be obvious is an impossibility; you can't delete a
dir that you're holding busy, and you "enter" it with the trailing /.




chris
--
Chris G. Demetriou                                    cgd@cs.berkeley.edu

                 MENTALLY CONTAMINATED and proud of it!