RFR: 8229872: (fs) Increase buffer size used with getmntent

Alan Bateman Alan.Bateman at oracle.com
Mon Aug 19 12:46:36 UTC 2019


On 19/08/2019 12:56, Florian Weimer wrote:
> * Vladimir Kempik:
>
>> :
>>
>> A possible way is to use getmntent instead, it will allocated 4kb buffer on glibc and «as much as needed» on musl
>> (https://www.openwall.com/lists/musl/2016/09/08/1)
>> But getmntent is dubbed "MT-Unsafe race:mntentbuf locale»
>>
>>
Is errno set to something useful when getmntent_r fails? Just wondering 
if it can be used to allocate a larger buffer.

-Alan


More information about the nio-dev mailing list