pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Peter Eisentraut <peter@eisentraut.org>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: pg_checksums: Handle read and write returns correctly
Date: Tue, 03 Sep 2019 06:38:02 +0000
Message-ID: <E1i52S2-00048s-Dt@gemulon.postgresql.org> (raw)

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

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(-)



view thread (2+ messages)

Message-ID: <E1i52S2-00048s-Dt@gemulon.postgresql.org>
Permalink:  ../E1i52S2-00048s-Dt@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1i52S2-00048s-Dt@gemulon.postgresql.org

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-committers@postgresql.org
  Cc: peter@eisentraut.org
  Subject: Re: pgsql: pg_checksums: Handle read and write returns correctly
  In-Reply-To: <E1i52S2-00048s-Dt@gemulon.postgresql.org>
  References: <E1i52S2-00048s-Dt@gemulon.postgresql.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox