David Schultz
18798c64f0
scandir(3) previously used st_size to obtain an initial estimate
...
of the array length needed to store all the directory entries.
Although BSD has historically guaranteed that st_size is the size
of the directory file, POSIX does not, and more to the point, some
recent filesystems such as ZFS use st_size to mean something else.
The fix is to not stat the directory at all, set the initial
array size to 32 entries, and realloc it in powers of 2 if that
proves insufficient.
PR: 113668
2008-03-16 19:08:53 +00:00
..
2007-12-02 22:21:30 +00:00
2007-12-04 12:18:43 +00:00
2008-03-12 11:58:29 +00:00
2008-03-15 11:09:16 +00:00
2007-05-21 02:49:08 +00:00
2007-05-21 02:49:08 +00:00
2007-05-21 02:49:08 +00:00
2007-05-21 02:49:08 +00:00
2007-10-19 10:37:34 +00:00
2007-06-18 18:47:54 +00:00
2007-05-21 02:49:08 +00:00
2008-03-16 19:08:53 +00:00
2007-05-21 02:49:08 +00:00
2006-11-02 00:54:38 +00:00
2007-01-09 01:02:06 +00:00
2007-05-21 02:49:08 +00:00
2008-01-31 16:55:12 +00:00
2008-02-15 21:19:15 +00:00
2007-06-10 19:06:09 +00:00
2008-03-03 04:29:25 +00:00
2007-05-21 02:49:08 +00:00
2008-02-08 09:48:48 +00:00
2007-05-21 02:49:08 +00:00
2007-05-06 10:00:27 +00:00
2007-05-21 02:49:08 +00:00
2007-11-28 08:50:20 +00:00
2007-07-01 12:08:08 +00:00
2007-01-09 01:02:06 +00:00
2007-05-21 02:49:08 +00:00
2008-02-06 23:25:29 +00:00
2008-03-12 10:00:33 +00:00
2008-01-13 20:37:19 +00:00
2007-05-14 05:00:37 +00:00
2007-05-21 18:16:04 +00:00
2008-02-17 05:14:47 +00:00
2007-05-21 02:49:08 +00:00
2007-05-21 02:49:08 +00:00
2007-05-21 02:49:08 +00:00
2007-05-21 02:49:08 +00:00
2007-05-21 02:49:08 +00:00
2007-12-21 12:00:16 +00:00
2007-10-16 02:10:44 +00:00
2008-03-14 06:22:03 +00:00
2007-05-21 02:49:08 +00:00
2008-02-05 20:03:45 +00:00
2007-05-13 14:12:40 +00:00
2008-03-11 00:08:40 +00:00
2007-04-09 01:45:30 +00:00
2007-05-21 02:49:08 +00:00
2007-12-18 01:50:49 +00:00
2007-05-21 02:49:08 +00:00
2008-03-16 03:22:38 +00:00
2008-03-12 09:49:39 +00:00
2007-12-16 18:02:37 +00:00
2007-05-21 02:49:08 +00:00
2007-05-21 02:49:08 +00:00
2008-03-08 21:55:59 +00:00
2007-05-21 02:49:08 +00:00
2007-05-21 02:49:08 +00:00
2007-01-09 01:02:06 +00:00
2007-05-21 02:49:08 +00:00
2008-03-02 20:16:55 +00:00
2008-02-13 14:34:39 +00:00
2008-03-12 09:49:39 +00:00
2007-05-21 02:49:08 +00:00