diff options
author | Noah Misch <noah@leadboat.com> | 2015-06-21 20:04:36 -0400 |
---|---|---|
committer | Noah Misch <noah@leadboat.com> | 2015-06-21 20:04:53 -0400 |
commit | d1c1e48832f31c1a4d01201a31a60c751ed4895c (patch) | |
tree | bc7c30a997dda70ac44a5448983e0033129ec7aa /src/backend/lib | |
parent | ec1408155d3567b9e9871ad092ea773251d515d9 (diff) |
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.
Diffstat (limited to 'src/backend/lib')
0 files changed, 0 insertions, 0 deletions