]> granicus.if.org Git - postgresql/commit
pg_checksums: Handle read and write returns correctly
authorPeter Eisentraut <peter@eisentraut.org>
Tue, 3 Sep 2019 06:26:55 +0000 (08:26 +0200)
committerPeter Eisentraut <peter@eisentraut.org>
Tue, 3 Sep 2019 06:34:59 +0000 (08:34 +0200)
commit3e20b7fa408f1b5a1bf17120b55b5473e82a7e63
tree3eaa42718b37ebb9116bee81f2be11f35ab8e6c0
parent6ef121647f7f29b59b86eca3dee9b90548245a3a
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: https://www.postgresql.org/message-id/flat/5de61b6b-8be9-7771-0048-860328efe027%402ndquadrant.com
src/bin/pg_checksums/pg_checksums.c