[PATCH v2 1/3] support: Add helpers to create paths longer than PATH_MAX
Florian Weimer
fweimer@redhat.com
Thu Jan 20 14:56:26 GMT 2022
* Cristian Rodríguez:
> On Wed, Jan 19, 2022 at 7:21 AM Siddhesh Poyarekar <siddhesh@gotplt.org> wrote:
>>
>> On 19/01/2022 13:51, Siddhesh Poyarekar via Libc-alpha wrote:
>> > Add new helpers support_create_and_chdir_toolong_temp_directory and
>> > support_chdir_toolong_temp_directory to create and descend into
>> > directory trees longer than PATH_MAX.
>
> Note that recentish linux kernel versions do not allow d_name 's
> larger than kernel 's PATH_MAX definition, in that case getdents
> returns EIO, this behavior is since kernel 5.5.
NAME_MAX or PATH_MAX? d_name should be capped by NAME_MAX, but
historically it is not.
Thanks,
Florian
More information about the Libc-alpha
mailing list