bug-coreutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: PATCH: rm -rf and readdir bug in coreutils-6.7


From: Jim Meyering
Subject: Re: PATCH: rm -rf and readdir bug in coreutils-6.7
Date: Sat, 30 Dec 2006 22:27:02 +0100

Mikulas Patocka <address@hidden> wrote:
> I have a system that precaches directory content at opendir call and I
> found that coreutils-6.7 rm -r command doesn't work on it (it used to work
> fine in coreutils 5).
>
> The problem is this: when walking up to the root in directory tree, rm
> opens parent directory with opendir, then deletes its subdirectory with
> rmdir and then starts reading the parent with readdir --- readdir reads
> just deleted entry, rm tries to delete it again and fails.

Thanks again for that report and patch.
I've applied your patch, along with a little follow-up one.
Details here:

  http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=summary




reply via email to

[Prev in Thread] Current Thread [Next in Thread]