lkml.org 
[lkml]   [2000]   [Nov]   [20]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [BUG] Inconsistent behaviour of rmdir
On Mon, Nov 20, 2000 at 09:32:39AM +0100, Eric Paire wrote:
> >
> > On Fri, 17 Nov 2000, Guest section DW wrote:
> >
> > > I see that an entire discussion has taken place. Let me just remark this,
> > > quoting the Austin draft:
> > >
> > > If the path argument refers to a path whose final component is either
> > > dot or dot-dot, rmdir( ) shall fail.
> > >
> > > EINVAL The path argument contains a last component that is dot.
> > [snip]
> >
> Then, I don't understand why the EINVAL error condition does not also include
> dot-dot as last component.

Answer 1: It is the (draft) standard. No understanding required.

Answer 2: Whenever ENOTEMPTY is available, this much more precise error return
is to be preferred above EINVAL.
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 12:47    [W:0.247 / U:0.228 seconds]
©2003-2011 Jasper Spaans. Advertise on this site