* m4/fstatat.m4 (gl_FUNC_FSTATAT): Remove stray code left
over from an aborted attempt to mess with CFLAGS.
Problem reported by Bruno Haible in:
https://lists.gnu.org/r/bug-gnulib/2026-06/msg00084.html
2026-06-19 Paul Eggert <eggert@cs.ucla.edu>
2026-06-19 Paul Eggert <eggert@cs.ucla.edu>
+ fstatat: don’t mess with CFLAGS
+ * m4/fstatat.m4 (gl_FUNC_FSTATAT): Remove stray code left
+ over from an aborted attempt to mess with CFLAGS.
+ Problem reported by Bruno Haible in:
+ https://lists.gnu.org/r/bug-gnulib/2026-06/msg00084.html
+
openat2-tests: port to NFS
* tests/test-openat2.c (do_test_basic): Close fd before
removing its file. This fixes a file descriptor leak,
openat2-tests: port to NFS
* tests/test-openat2.c (do_test_basic): Close fd before
removing its file. This fixes a file descriptor leak,
dnl Copyright (C) 2004-2026 Free Software Foundation, Inc.
dnl This file is free software; the Free Software Foundation
dnl gives unlimited permission to copy and/or distribute it,
dnl Copyright (C) 2004-2026 Free Software Foundation, Inc.
dnl This file is free software; the Free Software Foundation
dnl gives unlimited permission to copy and/or distribute it,
[0],
[AC_CACHE_CHECK([whether fstatat+AT_EMPTY_PATH allows null file],
[gl_cv_func_fstatat_null_file],
[0],
[AC_CACHE_CHECK([whether fstatat+AT_EMPTY_PATH allows null file],
[gl_cv_func_fstatat_null_file],
- [gl_saved_CFLAGS=$CFLAGS
- CFLAGS="$CFLAGS -Wno-nonnull"
- AC_RUN_IFELSE(
[AC_LANG_PROGRAM(
[[#include <stddef.h>
#include <fcntl.h>
[AC_LANG_PROGRAM(
[[#include <stddef.h>
#include <fcntl.h>
#ifndef AT_EMPTY_PATH
#define AT_EMPTY_PATH 0
#endif
#ifndef AT_EMPTY_PATH
#define AT_EMPTY_PATH 0
#endif
+ /* Don't check via -Wnonnull, as the problem could in
+ theory exist with compilers lacking -Wnonnull. */
#if __GLIBC__ && ! (2 < __GLIBC__ + (41 <= __GLIBC_MINOR__))
#error "glibc 2.40 and earlier can fail with null file"
#endif
#if __GLIBC__ && ! (2 < __GLIBC__ + (41 <= __GLIBC_MINOR__))
#error "glibc 2.40 and earlier can fail with null file"
#endif