[lkml]   [1999]   [Feb]   [12]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
    SubjectRe: rmdir of a busy directory

    On Fri, 12 Feb 1999, Ralf Corsepius wrote:

    > This might also be consequence of the same problem:
    > mkdir <somedir>
    > cd <somedir>
    > rmdir .
    > Under all OSes I tried, the rmdir . command above returns an error. On linux >
    > 2.1.124 (the version I first noticed to be affected) this silently succeeds.

    You never tried 4.4BSD, right?

    > BTW, this behaviour breaks building egcs/gcc/fixincludes for cross-compilers
    > under linux, because fixincludes (egcs-1.1b and egcs-1.1.1) contain a fragment
    > which rely on "rmdir ." failing.

    Then egcs/gcc is broken. Period. POSIX doesn't mandate failure on
    such operation. All *BSD do the same as Linux. And this behaviour is
    consistent with unlink(). Notice that it may be even fs-dependent. Out of
    curiosity - how does this fragment look like?

    Final word belongs Linus, indeed, but IMO reverting to -EBUSY on
    rmdir() is *wrong*.

    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to
    Please read the FAQ at

     \ /
      Last update: 2005-03-22 13:50    [W:0.018 / U:55.868 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site