pgsql: Truncate strings in tarCreateHeader() with strlcpy(), not sprint

Поиск
Список
Период
Сортировка
От Noah Misch
Тема pgsql: Truncate strings in tarCreateHeader() with strlcpy(), not sprint
Дата
Msg-id E1Z6pNj-000610-PE@gemulon.postgresql.org
обсуждение исходный текст
Список pgsql-committers
Truncate strings in tarCreateHeader() with strlcpy(), not sprintf().

This supplements the GNU libc bug #6530 workarounds introduced in commit
54cd4f04576833abc394e131288bf3dd7dcf4806.  On affected systems, a
tar-format pg_basebackup failed when some filename beneath the data
directory was not valid character data in the postmaster/walsender
locale.  Back-patch to 9.1, where pg_basebackup was introduced.  Extant,
bug-prone conversion specifications receive only ASCII bytes or involve
low-importance messages.

Branch
------
REL9_1_STABLE

Details
-------
http://git.postgresql.org/pg/commitdiff/3508ee9c3c2c4e8c0f0f3d20327051f47105da57

Modified Files
--------------
src/backend/replication/basebackup.c |    8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)


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

Предыдущее
От: Noah Misch
Дата:
Сообщение: pgsql: Truncate strings in tarCreateHeader() with strlcpy(), not sprint
Следующее
От: Robert Haas
Дата:
Сообщение: pgsql: psql: Add some tab completion for TABLESAMPLE.