lkml.org 
[lkml]   [1999]   [Feb]   [15]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: rmdir of a busy directory
On Mon, Feb 15, 1999 at 08:36:16AM +0100, Martin Tessun wrote:

[...]
>
> So perhaps this isn't POSIX (I don't really know POSIX that much), but I
> think this is the correct behaviour. You normally don't cut the tree you
> are sitting on.
>

You are able to unlink a file that is opened and used by yourself
or another process.
You are able to rmdir your current directory by typing
rmdir `pwd`. So I do not see why we should take care of the
name of the directory to reject the deletion (`pwd` versus '.').

And yes, the 2.0.xx kernels returned an 'Operation not permitted'
on 'rmdir .' and the only serious reason to revert to that test
is to maintain compatibility.


> So IMHO you may discuss the error-code, but it really should be a error,
> as this is so in (as I think) all OSs. (Even in SunOS 4.x a BSD-Unix it
> returned an Error.)
>

[...]

> Bye
> Martin
>

A+
--
Thierry Danis

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 13:50    [W:0.127 / U:0.500 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site