]> git.ipfire.org Git - thirdparty/gnulib.git/commitdiff
openat-die: pacify Apple clang-1400.0.29.202
authorPaul Eggert <eggert@cs.ucla.edu>
Mon, 30 Jun 2025 22:01:03 +0000 (15:01 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Mon, 30 Jun 2025 22:01:03 +0000 (15:01 -0700)
* lib/openat-die.c (openat_save_fail):
Pacify-Wformat-security on this platform.

ChangeLog
lib/openat-die.c

index ffc5512e71c34352248f4eb7de93edb8e5938d43..2775f64d5d73de06f7c3344dc94c4abeb8f7f3db 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+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.
+
 2025-06-30  Bruno Haible  <bruno@clisp.org>
 
        options tests: Fix link error.
index 79a5b23bc8397ef56876959aa5a7be6396198133..f72ed0537b265b1e38dd73c31f655bb8f638b6f8 100644 (file)
@@ -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