1
0
mirror of https://https.git.savannah.gnu.org/git/gnulib.git synced 2026-05-13 15:13:36 +00:00

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.
This commit is contained in:
Collin Funk
2025-03-18 18:12:39 -07:00
parent 4f98832331
commit 579debda82
2 changed files with 13 additions and 5 deletions

View File

@@ -1,3 +1,11 @@
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.

View File

@@ -1,5 +1,5 @@
# 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,
@@ -67,11 +67,11 @@ AC_DEFUN([gl_FUNC_UTIMENSAT],
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
{
@@ -90,7 +90,7 @@ AC_DEFUN([gl_FUNC_UTIMENSAT],
ts[1].tv_sec = 1;
ts[1].tv_nsec = 0;
if (utimensat (AT_FDCWD, f, ts, 0) == 0)
result |= 128;
result |= 32;
}
return result;
]])],