Re: rmdir of one's pwd (was Re: rmdir of a busy directory)

Andreas Schwab (schwab@issan.informatik.uni-dortmund.de)
13 Feb 1999 04:07:03 +0100


Ralf Corsepius <corsepiu@faw.uni-ulm.de> writes:

|> Linus Torvalds wrote:
|>
|> > Show me POSIX or other standards that say that you can't do it, and I
|> > guess I have to work around a standards problem, but right now I say that
|> > if programs ask for 'rmdir(".")', then they had better get it. I don't
|> > think the OS should second-guess anybody.
|>
|> I don't know about a formal standard, either.

>From SUS2:

"If the directory is the root directory or the current working directory
of any process, it is unspecified whether the function succeeds, or
whether it fails and sets errno to [EBUSY]."

Btw, they don't talk about EINVAL.

Andreas.

-- 
Andreas Schwab                                      "And now for something
schwab@issan.cs.uni-dortmund.de                      completely different"
schwab@gnu.org

- 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/