das
6f407f2920
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-07-04 23:27:38 +00:00
2007-01-09 00:28:16 +00:00
2006-03-05 18:10:28 +00:00
2007-01-12 07:31:30 +00:00
2007-01-09 00:28:16 +00:00
2007-01-09 00:28:16 +00:00
2007-05-25 10:40:33 +00:00
2007-01-09 00:28:16 +00:00
2006-10-12 14:31:17 +00:00
2005-01-20 09:17:07 +00:00
2007-01-09 00:28:16 +00:00
2007-01-09 00:28:16 +00:00
2007-12-03 14:33:51 +00:00
2007-01-09 00:28:16 +00:00
2007-01-09 00:28:16 +00:00
2007-01-09 00:28:16 +00:00
2007-01-09 00:28:16 +00:00
2007-01-09 00:28:16 +00:00
2007-01-09 00:28:16 +00:00
2007-01-09 00:28:16 +00:00
2007-01-09 00:28:16 +00:00
2007-01-09 00:28:16 +00:00
2007-01-09 00:28:16 +00:00
2006-10-12 14:31:17 +00:00
2007-01-09 00:28:16 +00:00
2004-07-02 23:52:20 +00:00
2007-04-03 18:35:20 +00:00
2005-01-20 09:17:07 +00:00
2004-07-02 23:52:20 +00:00
2004-06-03 10:13:26 +00:00
2007-01-09 00:28:16 +00:00
2007-01-09 00:28:16 +00:00
2007-01-09 00:28:16 +00:00
2007-01-09 00:28:16 +00:00
2007-01-09 00:28:16 +00:00
2008-01-10 22:11:21 +00:00
2008-01-10 22:11:21 +00:00
2004-07-02 23:52:20 +00:00
2005-03-21 08:00:55 +00:00
2007-01-09 00:28:16 +00:00
2007-01-09 00:28:16 +00:00
2005-01-27 05:46:17 +00:00
2005-02-06 03:23:31 +00:00
2007-01-09 00:28:16 +00:00
2004-07-18 21:23:39 +00:00
2007-01-09 00:28:16 +00:00
2004-07-02 23:52:20 +00:00
2004-06-01 06:53:07 +00:00
2008-01-26 17:09:40 +00:00
2008-01-26 17:09:40 +00:00
2008-01-26 17:09:40 +00:00
2008-01-26 17:09:40 +00:00
2005-11-23 15:41:36 +00:00
2004-08-24 13:00:55 +00:00
2007-01-09 00:28:16 +00:00
2007-01-09 00:28:16 +00:00
2007-01-09 00:28:16 +00:00
2007-01-09 00:28:16 +00:00
2007-02-11 18:14:49 +00:00
2007-01-09 00:28:16 +00:00
2004-12-03 14:10:04 +00:00
2007-01-09 00:28:16 +00:00
2007-01-09 00:28:16 +00:00
2007-01-09 00:28:16 +00:00
2007-01-09 00:28:16 +00:00
2007-01-09 00:28:16 +00:00
2007-01-09 00:28:16 +00:00
2007-01-09 00:28:16 +00:00
2007-12-12 10:08:03 +00:00
2007-01-09 00:28:16 +00:00
2007-12-12 10:08:03 +00:00
2007-01-09 00:28:16 +00:00
2007-01-09 00:28:16 +00:00
2007-01-09 00:28:16 +00:00
2007-01-09 00:28:16 +00:00
2007-01-09 00:28:16 +00:00
2007-01-09 00:28:16 +00:00
2007-01-09 00:28:16 +00:00
2007-01-09 00:28:16 +00:00
2007-01-09 00:28:16 +00:00
2005-12-03 05:11:07 +00:00
2007-01-09 00:28:16 +00:00
2007-01-09 00:28:16 +00:00
2007-01-09 00:28:16 +00:00
2007-01-09 00:28:16 +00:00
2007-01-09 00:28:16 +00:00
2006-04-28 12:03:38 +00:00
2007-01-09 00:28:16 +00:00
2008-01-15 06:50:50 +00:00
2007-01-09 00:28:16 +00:00
2007-01-09 00:28:16 +00:00
2007-04-05 21:17:52 +00:00
2007-01-09 00:28:16 +00:00
2007-01-09 00:28:16 +00:00
2007-01-09 00:28:16 +00:00
2007-01-09 00:28:16 +00:00
2007-01-09 00:28:16 +00:00
2007-01-09 00:28:16 +00:00
2005-02-06 03:23:31 +00:00
2004-07-10 15:52:26 +00:00
2004-09-24 06:33:22 +00:00
2007-01-09 00:28:16 +00:00
2005-01-22 06:03:40 +00:00
2004-07-02 23:52:20 +00:00
2008-03-12 02:33:17 +00:00
2007-01-09 00:28:16 +00:00
2006-08-09 18:05:44 +00:00
2005-06-14 10:56:02 +00:00
2006-10-12 11:42:41 +00:00
2004-08-24 13:00:55 +00:00
2007-01-09 00:28:16 +00:00
2007-01-09 00:28:16 +00:00
2007-01-09 00:28:16 +00:00
2007-01-09 00:28:16 +00:00
2007-01-09 00:28:16 +00:00
2007-01-09 00:28:16 +00:00
2007-01-09 00:28:16 +00:00
2007-01-09 00:28:16 +00:00
2007-01-09 00:28:16 +00:00
2007-01-09 00:28:16 +00:00
2007-01-09 00:28:16 +00:00
2007-01-09 00:28:16 +00:00
2007-01-09 00:28:16 +00:00
2007-01-09 00:28:16 +00:00
2007-01-09 00:28:16 +00:00
2007-01-09 00:28:16 +00:00
2007-01-09 00:28:16 +00:00
2005-01-20 09:17:07 +00:00
2007-12-03 14:33:51 +00:00
2005-01-20 09:17:07 +00:00
2007-01-09 00:28:16 +00:00
2007-01-09 00:28:16 +00:00
2008-03-16 19:08:53 +00:00
2007-12-03 14:33:51 +00:00
2004-07-02 16:45:56 +00:00
2004-07-02 16:45:56 +00:00
2005-07-13 13:15:22 +00:00
2007-12-27 21:55:49 +00:00
2005-07-13 13:15:22 +00:00
2008-03-13 10:26:17 +00:00
2008-03-13 10:25:30 +00:00
2005-10-18 17:24:03 +00:00
2007-01-09 00:28:16 +00:00
2007-01-09 00:28:16 +00:00
2007-01-09 00:28:16 +00:00
2007-01-09 00:28:16 +00:00
2007-01-09 00:28:16 +00:00
2007-01-09 00:28:16 +00:00
2004-07-02 23:52:20 +00:00
2007-01-09 00:28:16 +00:00
2007-01-09 00:28:16 +00:00
2007-01-20 08:24:02 +00:00
2007-01-09 00:28:16 +00:00
2007-01-09 00:28:16 +00:00
2007-01-09 00:28:16 +00:00
2007-01-09 00:28:16 +00:00
2007-01-09 00:28:16 +00:00
2007-01-09 00:28:16 +00:00
2005-02-13 23:45:54 +00:00
2007-01-09 00:28:16 +00:00
2007-01-09 00:28:16 +00:00
2007-01-09 00:28:16 +00:00
2008-01-26 17:09:40 +00:00
2007-01-09 00:28:16 +00:00
2008-02-27 05:56:57 +00:00
2007-10-16 11:29:13 +00:00
2007-01-09 00:28:16 +00:00
2007-01-09 00:28:16 +00:00
2007-01-09 00:28:16 +00:00
2007-01-09 00:28:16 +00:00
2007-01-09 00:28:16 +00:00
2007-01-09 00:28:16 +00:00
2007-01-09 00:28:16 +00:00
2007-12-03 14:33:51 +00:00
2007-01-09 00:28:16 +00:00
2007-01-09 00:28:16 +00:00
2007-01-09 00:28:16 +00:00
2007-01-09 00:28:16 +00:00
2007-01-09 00:28:16 +00:00
2007-01-09 00:28:16 +00:00
2007-01-09 00:28:16 +00:00
2007-02-25 21:23:50 +00:00
2007-01-09 00:28:16 +00:00
2007-01-09 00:28:16 +00:00
2007-01-09 00:28:16 +00:00
2007-01-09 00:28:16 +00:00
2007-01-09 00:28:16 +00:00
2007-01-09 00:28:16 +00:00
2004-07-03 22:30:10 +00:00
2007-01-09 00:28:16 +00:00
2007-01-09 00:28:16 +00:00
2007-01-09 00:28:16 +00:00
2007-01-09 00:28:16 +00:00
2007-01-09 00:28:16 +00:00
2007-01-09 00:28:16 +00:00
2007-01-09 00:28:16 +00:00
2007-01-09 00:28:16 +00:00
2007-10-30 15:26:20 +00:00
2007-01-09 00:28:16 +00:00
2007-01-09 00:28:16 +00:00
2007-01-09 00:28:16 +00:00
2007-01-09 00:28:16 +00:00
2007-01-09 00:28:16 +00:00
2007-01-09 00:28:16 +00:00
2006-04-18 21:37:24 +00:00
2004-06-30 13:55:08 +00:00