+2024-12-10 Bruno Haible <bruno@clisp.org>
+
+ openat-die: Fix a gcc -Wformat -Wformat-security warning.
+ * lib/openat-die.c (openat_save_fail, openat_restore_fail): Put the
+ internationalized error message into non-format-string position.
+
2024-12-08 Bruno Haible <bruno@clisp.org>
Update dependencies of modules that include "gettext.h".
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
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