Hello,
as solution to rhbz #441807 (/bin/ls fails in a directory with >6M files)
I propose tiny patch for ls - work with constant amount of memory when not
sorting and using one_per_line format, no matter how many files are in the
directory.
Tested with directory of about 10000 files.
Git version:
$ ulimit -v 102400
$ ls -U1 | wc -l
ls: memory exhausted
0
Patched version:
$ ulimit -v 102400
$ ls -U1 | wc -l
102402
Greetings
Kamil Dudka