pgsql: Fix unsafe usage of strerror(errno) within ereport().

Поиск
Список
Период
Сортировка
От Tom Lane
Тема pgsql: Fix unsafe usage of strerror(errno) within ereport().
Дата
Msg-id E1fKcVM-0008S2-Qb@gemulon.postgresql.org
обсуждение исходный текст
Список pgsql-committers
Fix unsafe usage of strerror(errno) within ereport().

This is the converse of the unsafe-usage-of-%m problem: the reason
ereport/elog provide that format code is mainly to dodge the hazard
of errno getting changed before control reaches functions within the
arguments of the macro.  I only found one instance of this hazard,
but it's been there since 9.4 :-(.

Branch
------
REL9_6_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/1545ca9a7463f4ae8451a845774a107ad0757a9f

Modified Files
--------------
src/backend/libpq/auth.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)


В списке pgsql-committers по дате отправления:

Предыдущее
От: Tom Lane
Дата:
Сообщение: pgsql: Fix unportable usage of printf("%m").
Следующее
От: Peter Eisentraut
Дата:
Сообщение: pgsql: pg_basebackup: Remove short option -k