[PATCH] io: statx, fstatat64: allow using NULL as path
Paul Eggert
eggert@cs.ucla.edu
Wed Jun 17 00:24:33 GMT 2026
On 2026-06-16 14:03, Paul Eggert wrote:
> On 2026-06-16 12:20, Sam James wrote:
>> But say, fchmodat is still wrong in io/sys/stat.h.
>
> Yes, and faccessat and fchownat are still wrong in posix/unistd.h, and
> openat2 is wrong in sysdeps/unix/sysv/linux/bits/fcntl-linux.h.
Ooops, I was premature about openat2. And I forgot about openat. So, a
correction.
The "openat2 is wrong" part of my above-quoted statement applies under
the assumption that the VFS changes queued up for Linux 7.2 will be
applied. See this queued-up commit:
https://git.kernel.org/pub/scm/linux/kernel/git/vfs/vfs.git/commit/?h=vfs-7.2.openat2&id=31cf44efa6df72a524b40adefb80539f3a4e13ba
That commit also affects openat. So, assuming the queued-up commit goes
into the Linux mainline kernel, we should change the declarations of
both openat2 and openat (and openat64), plus add O_EMPTYPATH of course.
This part can wait until after 7.2 comes out.
In the meantime, the decls for fchmodat, faccessat, and fchownat are
wrong as of Linux kernel 6.11 (2024), and can be fixed now.
More information about the Libc-alpha
mailing list