On 20/11/2026 21:39, Collin Funk wrote:
I was looking at this one a bit yesterday (didn't have anything close to
a patch being finished, so don't worry about that), and wanted to see if
FTS_NOSTAT could be used to avoid stat'ing twice where O_PATH is
available. I guess it doesn't matter too much in practice. It is a
larger refactoring that can probably just be done later.

Oh good point. I'll have a look at that optimization.

Also, I didn't love calling it a bug given that O_PATH and AT_EMPTY_PATH
are Linux-isms, meaning that the bug, i.e., the second lookup, occurs
everywhere else. Maybe that can be mentioned in the NEWS entry, if it
can be done without making it too wordy?
Well I only did a quick search on FreeBSD and it seems
these are available since 13.1 (2022), but I have not tested there.
I will test there and make the NEWS less Linux specific.

cheers,
Padraig

Reply via email to