* lib/openat-die.c (openat_save_fail):
Pacify-Wformat-security on this platform.
---
 ChangeLog        | 6 ++++++
 lib/openat-die.c | 2 +-
 2 files changed, 7 insertions(+), 1 deletion(-)

diff --git a/ChangeLog b/ChangeLog
index ffc5512e71..2775f64d5d 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2025-06-30  Paul Eggert  <egg...@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.
+
 2025-06-30  Bruno Haible  <br...@clisp.org>
 
        options tests: Fix link error.
diff --git a/lib/openat-die.c b/lib/openat-die.c
index 79a5b23bc8..f72ed0537b 100644
--- a/lib/openat-die.c
+++ b/lib/openat-die.c
@@ -34,7 +34,7 @@ _Noreturn void
 openat_save_fail (int errnum)
 {
 #ifndef GNULIB_LIBPOSIX
-  error (exit_failure, errnum,
+  error (exit_failure, errnum, "%s",
          _("unable to record current working directory"));
 #endif
   /* _Noreturn cannot be applied to error, since it returns
-- 
2.48.1


Reply via email to