Messages in this thread | | | Date | Fri, 12 Feb 1999 13:16:30 GMT | From | "Stephen C. Tweedie" <> | Subject | Re: 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/
| |