[PATCH v2 1/3] support: Add helpers to create paths longer than PATH_MAX
Cristian Rodríguez
crrodriguez@opensuse.org
Thu Jan 20 15:17:28 GMT 2022
On Thu, Jan 20, 2022 at 11:56 AM Florian Weimer <fweimer@redhat.com> wrote:
>
> * 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.
PATH_MAX.. I wrote that correctly, see
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=2c6b7bcd747201441923a0d3062577a8d1fbd8f8
More information about the Libc-alpha
mailing list