das
2d3c2f4697
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
2019-02-01 10:36:40 +01:00
..
2018-01-17 11:47:26 -06:00
2008-10-31 21:03:42 +00:00
2018-01-17 11:47:26 -06:00
2008-10-31 21:03:42 +00:00
2012-08-08 11:04:18 +00:00
2008-10-31 21:03:42 +00:00
2008-10-31 21:03:42 +00:00
2008-10-31 21:03:42 +00:00
2018-01-17 11:47:26 -06:00
2018-10-11 08:29:16 +02:00
2012-10-16 18:45:24 +00:00
2018-01-17 11:47:30 -06:00
2018-01-17 11:47:30 -06:00
2018-01-17 11:47:30 -06:00
2018-01-17 11:47:26 -06:00
2018-01-17 11:47:26 -06:00
2018-01-17 11:47:26 -06:00
2008-10-31 21:03:42 +00:00
2008-10-31 21:03:42 +00:00
2008-10-31 21:03:42 +00:00
2013-11-21 17:04:57 +00:00
2018-01-17 11:47:26 -06:00
2018-10-11 08:29:16 +02:00
2018-10-11 08:29:16 +02:00
2008-11-24 21:27:33 +00:00
2018-10-11 08:29:17 +02:00
2018-01-17 11:47:26 -06:00
2018-01-17 11:47:26 -06:00
2015-06-24 12:24:01 +01:00
2018-01-17 11:47:26 -06:00
2018-01-17 11:47:26 -06:00
2013-11-20 16:25:50 +00:00
2013-11-20 16:25:50 +00:00
2008-10-31 21:03:42 +00:00
2013-11-20 16:25:50 +00:00
2013-11-20 16:25:50 +00:00
2008-10-31 21:03:42 +00:00
2018-01-17 11:47:26 -06:00
2008-10-31 21:03:42 +00:00
2008-11-19 17:13:13 +00:00
2019-02-01 10:36:40 +01:00
2018-01-17 11:47:26 -06:00
2006-06-06 15:41:10 +00:00
2008-10-31 21:03:42 +00:00
2018-01-17 11:47:26 -06:00
2008-10-31 21:03:42 +00:00
2006-06-06 15:41:10 +00:00
2008-10-31 21:03:42 +00:00
2012-10-09 12:05:51 +00:00
2018-08-08 10:50:19 +02:00
2012-10-09 12:05:51 +00:00