lkml.org 
[lkml]   [1999]   [Feb]   [12]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: rmdir of a busy directory
Hi,

On Thu, 11 Feb 1999 23:52:52 -0500 (EST), "Alan Curry"
<pacman-kernel@cqc.com> said:

> For as long as I can remember, if you removed a directory which is the
> current working directory of a process (for example, a shell), and then tried
> to do anything with that process that accesses the current working directory
> (for example, type "ls"), you'd get a ENOENT.

> Under 2.2, though, the opendir(".") succeeds and creates the appearance of an
> empty directory.

That is a bug. It should still return ENOENT, since there is no "."
entry any longer. I'll have a look.

> Even stranger, attempts to creat() or mkdir() in the nonexistent
> directory yield EPERM.

That is correct behaviour.

--Stephen

-
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.093 / U:0.288 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site