Reported by Bruno Haible in
<https://lists.gnu.org/archive/html/bug-gnulib/2025-03/msg00061.html>.
* m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Merge bits for tests to match
expectations on current platforms.
+2025-03-18 Collin Funk <collin.funk1@gmail.com>
+
+ utimensat: Make sure exit status in configure check doesn't exceed 127.
+ Reported by Bruno Haible in
+ <https://lists.gnu.org/archive/html/bug-gnulib/2025-03/msg00061.html>.
+ * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Merge bits for tests to match
+ expectations on current platforms.
+
2025-03-17 Collin Funk <collin.funk1@gmail.com>
utimensat: Increment serial number for previous commit.
# utimensat.m4
-# serial 13
+# serial 14
dnl Copyright (C) 2009-2025 Free Software Foundation, Inc.
dnl This file is free software; the Free Software Foundation
dnl gives unlimited permission to copy and/or distribute it,
ts[1].tv_sec = 1;
ts[1].tv_nsec = UTIME_OMIT;
if (utimensat (AT_FDCWD, f, ts, 0))
- result |= 16;
+ result |= 8;
if (stat (f, &st))
- result |= 32;
+ result |= 8;
else if (st.st_ctime < st.st_atime)
- result |= 64;
+ result |= 16;
}
enum
{
ts[1].tv_sec = 1;
ts[1].tv_nsec = 0;
if (utimensat (AT_FDCWD, f, ts, 0) == 0)
- result |= 128;
+ result |= 32;
}
return result;
]])],