]> git.ipfire.org Git - thirdparty/gnulib.git/commitdiff
openat-die: also change openat_restore_fail
authorPaul Eggert <eggert@cs.ucla.edu>
Mon, 30 Jun 2025 22:07:24 +0000 (15:07 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Mon, 30 Jun 2025 22:07:24 +0000 (15:07 -0700)
ChangeLog
lib/openat-die.c

index 2775f64d5d73de06f7c3344dc94c4abeb8f7f3db..19b16ab146713e05d1833682b601159efff86125 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,8 +1,8 @@
 2025-06-30  Paul Eggert  <eggert@cs.ucla.edu>
 
        openat-die: pacify Apple clang-1400.0.29.202
-       * lib/openat-die.c (openat_save_fail):
-       Pacify-Wformat-security on this platform.
+       * lib/openat-die.c (openat_save_fail, openat_restore_fail):
+       [!GNULIB_LIBPOSIX]: Pacify-Wformat-security on this platform.
 
 2025-06-30  Bruno Haible  <bruno@clisp.org>
 
index f72ed0537b265b1e38dd73c31f655bb8f638b6f8..3fbb5d86e47d3a208bbfa38030bcd8f81b252740 100644 (file)
@@ -53,7 +53,7 @@ _Noreturn void
 openat_restore_fail (int errnum)
 {
 #ifndef GNULIB_LIBPOSIX
-  error (exit_failure, errnum,
+  error (exit_failure, errnum, "%s",
          _("failed to return to initial working directory"));
 #endif