[PATCH] io: statx, fstatat64: allow using NULL as path
Paul Eggert
eggert@cs.ucla.edu
Tue Jun 16 21:03:13 GMT 2026
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. All
those declarations mistakenly tell GCC that the filename arg must not be
null, and this bug can cause GCC to generate wrong code.
Please go ahead and submit fixes on the glibc side. I will look into
fixing this on the Gnulib side, by supplying wrappers for the broken
functions.
More information about the Libc-alpha
mailing list