pgsql: pg_checksums: Handle read and write returns correctly
Started by Peter Eisentrautalmost 7 years ago1 messagescomitters
pg_checksums: Handle read and write returns correctly
The read() return was not checking for errors, the write() return was
not checking for short writes.
Reviewed-by: Michael Paquier <michael@paquier.xyz>
Discussion: /messages/by-id/5de61b6b-8be9-7771-0048-860328efe027@2ndquadrant.com
Branch
------
REL_12_STABLE
Details
-------
https://git.postgresql.org/pg/commitdiff/3e20b7fa408f1b5a1bf17120b55b5473e82a7e63
Modified Files
--------------
src/bin/pg_checksums/pg_checksums.c | 21 ++++++++++++++++-----
1 file changed, 16 insertions(+), 5 deletions(-)