From: Collin Funk Date: Wed, 19 Mar 2025 01:12:39 +0000 (-0700) Subject: utimensat: Make sure exit status in configure check doesn't exceed 127. X-Git-Url: https://gitweb.git.savannah.gnu.org/gitweb/?a=commitdiff_plain;h=579debda823f8066f870c7e7fac65a4229db5f21;p=gnulib.git utimensat: Make sure exit status in configure check doesn't exceed 127. Reported by Bruno Haible in . * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Merge bits for tests to match expectations on current platforms. --- diff --git a/ChangeLog b/ChangeLog index ca5aa4b676..7a5c6632d1 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,11 @@ +2025-03-18 Collin Funk + + utimensat: Make sure exit status in configure check doesn't exceed 127. + Reported by Bruno Haible in + . + * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Merge bits for tests to match + expectations on current platforms. + 2025-03-17 Collin Funk utimensat: Increment serial number for previous commit. diff --git a/m4/utimensat.m4 b/m4/utimensat.m4 index 17caea5f68..d017af37b2 100644 --- a/m4/utimensat.m4 +++ b/m4/utimensat.m4 @@ -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; ]])],