GNU bug report logs - #9813
rm -rf calls rmdir() prior to close(), which can fail

Previous Next

Package: coreutils;

Reported by: Eric Blake <eblake <at> redhat.com>

Date: Thu, 20 Oct 2011 17:41:01 UTC

Severity: normal

Done: Jim Meyering <jim <at> meyering.net>

Bug is archived. No further changes may be made.

Full log


Message #35 received at 9813 <at> debbugs.gnu.org (full text, mbox):

From: Eric Blake <eblake <at> redhat.com>
To: Jim Meyering <jim <at> meyering.net>
Cc: cygwin <at> cygwin.com, bug-gnulib <bug-gnulib <at> gnu.org>, 9813 <at> debbugs.gnu.org
Subject: Re: rm -rf calls rmdir() prior to close(), which can fail
Date: Mon, 24 Oct 2011 07:57:57 -0600
On 10/24/2011 02:58 AM, Jim Meyering wrote:
>   ** Bug fixes
>
> +  rm -rf DIR would fail with "Device or resource busy" on Cygwin with NWFS
> +  and NcFsd file systems.  This did not affect Unix/Linux-based kernels.
> +  [bug introduced in coreutils-7.0, when rm began using fts]

rm didn't use fts() until coreutils 8.0 (the cygwin testing proved that 
coreutils 7.0 did not suffer from the problem).  See also the news for 
8.13 mentioning an rm regression introduced by fts() in 8.0.

-- 
Eric Blake   eblake <at> redhat.com    +1-801-349-2682
Libvirt virtualization library http://libvirt.org




This bug report was last modified 13 years and 298 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.