]> git.ipfire.org Git - thirdparty/gnulib.git/commitdiff
openat-die: revert recent changes
authorPaul Eggert <eggert@cs.ucla.edu>
Tue, 1 Jul 2025 00:50:58 +0000 (17:50 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Tue, 1 Jul 2025 00:50:58 +0000 (17:50 -0700)
* lib/openat.die: Revert recent changes as per email in:
https://lists.gnu.org/r/bug-gnulib/2025-06/msg00325.html

ChangeLog
lib/openat-die.c

index 19b16ab146713e05d1833682b601159efff86125..ffc5512e71c34352248f4eb7de93edb8e5938d43 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,9 +1,3 @@
-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, openat_restore_fail):
-       [!GNULIB_LIBPOSIX]: Pacify-Wformat-security on this platform.
-
 2025-06-30  Bruno Haible  <bruno@clisp.org>
 
        options tests: Fix link error.
index 3fbb5d86e47d3a208bbfa38030bcd8f81b252740..79a5b23bc8397ef56876959aa5a7be6396198133 100644 (file)
@@ -34,7 +34,7 @@ _Noreturn void
 openat_save_fail (int errnum)
 {
 #ifndef GNULIB_LIBPOSIX
-  error (exit_failure, errnum, "%s",
+  error (exit_failure, errnum,
          _("unable to record current working directory"));
 #endif
   /* _Noreturn cannot be applied to error, since it returns
@@ -53,7 +53,7 @@ _Noreturn void
 openat_restore_fail (int errnum)
 {
 #ifndef GNULIB_LIBPOSIX
-  error (exit_failure, errnum, "%s",
+  error (exit_failure, errnum,
          _("failed to return to initial working directory"));
 #endif