Red Hat Bugzilla – Bug 90563
du leaks file-descriptors during processing
Last modified: 2005-10-31 17:00:50 EST
Description of problem:
The 'du' seems to leak file descriptors for each argv parameter,
with end result that:
in a directory with _lots_ of _files_ gives error message:
(actually lots of argv entries, even if they are the same file)
du: cannot open current directory: Too many open files
du: `30968': Too many open files
(files with all numeric names in my test case)
My ulimit -n is 1024, and first error is on line 1022 of the output.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. Create a directory with about a dozen files (or go to such),
2. ulimit -n 8
3. du -s *
For this to happen, 'du' argument set must have more elements, than
your current 'ulimit -n' value is (n=10 allows 10-2 args without failure)
Thanks for the report. Reported upstream too.
Fixed package will shortly appear in rawhide.