Re: [PATCH] man/man3/opendir.3: document that long file names result in ENAMETOOLONG
From: Alejandro Colomar <alx@kernel.org>
Date: 2025-10-28 23:37:09
Attachments
- signature.asc [application/pgp-signature] 833 bytes
From: Alejandro Colomar <alx@kernel.org>
Date: 2025-10-28 23:37:09
Hi Collin, Jakub, On Fri, Oct 17, 2025 at 10:45:53AM +0200, Jakub Wilk wrote:
* Collin Funk [off-list ref], 2025-10-17 01:18:quoted
$ mkdir -p `python3 -c 'print("./" + "a/" * 32768)'` $ ./a.out `python3 -c 'print("./" + "a/" * 32768)'` File name too long
Thanks! I've applied the patch.
Simpler reproducer: $ ./a.out $(printf '%0999d') File name too long
And also thanks! I've amended the commit message to use the simpler reproducer. I've also tweaked the source code for style. I'll push to master tomorrow. (And probably, issue a new release too.) Have a lovely night! Alex -- <https://www.alejandro-colomar.es> Use port 80 (that is, <...:80/>).