[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Bug in rm -rf
From: |
Jim Meyering |
Subject: |
Re: Bug in rm -rf |
Date: |
Tue, 15 Feb 2005 15:35:11 +0100 |
Geoffrey Odhner <address@hidden> wrote:
> I have encountered a bug with the rm command. If I unpack the
> coreutils-5.0 in a directory named .temp (I haven't tried any other
> names for this bug) and then from the parent of the .temp directory say:
>
> rm -rf .temp/
>
> then I get the following message:
>
> rm: cannot remove directory `.temp//coreutils-5.0/lib': Directory
> not empty
>
> Then I say:
>
> rm -rf .temp/coreutils-5.0/
>
> and it succeeds. On the other hand, if I initially say:
>
> rm -rf .temp
>
> then it works sometimes.
>
> I am running MacOS X 10.3.8 on a 667MHz PPC 15" Titanium PowerBook. Let
> me know if there is any other information I can provide to assist.
Thanks for the report.
That's due to a bug in their implementation of readdir.
With the work-around in the latest test release, GNU rm works
fine even there:
ftp://alpha.gnu.org/gnu/coreutils/coreutils-5.3.0.tar.gz
ftp://alpha.gnu.org/gnu/coreutils/coreutils-5.3.0.tar.bz2
- Bug in rm -rf, Geoffrey Odhner, 2005/02/15
- Re: Bug in rm -rf,
Jim Meyering <=