Re: fileutils-4.1.9 rm command bug

Jim Meyering <[email protected]> Wed, 28 May 2003 14:07:46 +0200
Newsgroups gmane.comp.gnu.fileutils.bugs
Message-ID <[email protected]>
hezhenxing <[email protected]> wrote:
>    I think there is a bug in the file 'fileutils-4.1.9/src/remove.c', line 523, the function is 'is_empty_dir', you 'opendir' the 'dir', but not 'closedir' it. This does not cause any problems in most filesystems, but it does cause problems in filesystems that do the (!d_unhashed(entry)) check before they do the real deletion. you can't 'rm' directories in such filesystem with '-i' or '-ir' option.

Thank you for reporting that.
That bug has been fixed for some time.
The latest release is here:

  ftp://ftp.gnu.org/gnu/coreutils/coreutils-5.0.tar.bz2
  (coreutils is the union of fileutils, textutils, and sh-utils)