From a4d470409f5590b95d33ab67e5866ab71e4f0e27 Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Fri, 29 Sep 2006 09:54:24 +0000 Subject: Work around a readdir bug in Darwin 7.9.0 (MacOS X 10.3.9) on HFS+ and NFS, whereby rm would not remove all files in a directory. * src/remove.c (CONSECUTIVE_READDIR_UNLINK_THRESHOLD): Reduce to 10. (NEED_REWIND): New macro, so that we incur the cost of the work-around rewinddir only on afflicted systems. * NEWS: Clarify and correct. * tests/rm/readdir-bug: New file. Test for the above fix. * tests/rm/Makefile.am (TESTS): Add it. Prompted by testing and analysis from Bruno Haible: http://lists.gnu.org/archive/html/bug-coreutils/2006-09/msg00326.html --- NEWS | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'NEWS') diff --git a/NEWS b/NEWS index ce7280894..7d2eb9f8f 100644 --- a/NEWS +++ b/NEWS @@ -4,8 +4,9 @@ GNU coreutils NEWS -*- outline -*- ** Improved robustness - rm works around a bug in Darwin 8.6.1 w/NFS that kept it from removing - a directory containing 188 or more entries. + rm works around a bug in Darwin 7.9.0 (MacOS X 10.3.9) that would + sometimes keep it from removing all entries in a directory on an HFS+ + or NFS-mounted partition. sort would fail to handle very large input (around 40GB) on systems with a mkstemp function that returns a file descriptor limited to 32-bit offsets. -- cgit v1.2.3-70-g09d2