* lib/strftime.c (__strftime_internal) [FPRINTFTIME]:
Do not restore errno if there is no error,
as the API does not promise this.
+2025-10-31 Paul Eggert <eggert@cs.ucla.edu>
+
+ fprintftime: omit unnecessary errno restore
+ * lib/strftime.c (__strftime_internal) [FPRINTFTIME]:
+ Do not restore errno if there is no error,
+ as the API does not promise this.
+
2025-10-31 Bruno Haible <bruno@clisp.org>
posix_spawn_file_actions_addclose: Ignore test failure on NetBSD 10.0.
#endif
#if FPRINTFTIME
byte_count_t maxsize = SBYTE_COUNT_MAX;
-#endif
-
+#else
int saved_errno = errno;
+#endif
#ifdef _NL_CURRENT
/* We cannot make the following values variables since we must delay
#if ! FPRINTFTIME
if (p && maxsize != 0)
*p = L_('\0');
+ errno = saved_errno;
#endif
- errno = saved_errno;
return i;
}