Reset properly errno before calling write() 6cb3372 enforces errno to ENOSPC when less bytes than what is expected have been written when it is unset, though it forgot to properly reset errno before doing a system call to write(), causing errno to potentially come from a previous system call.
Reported-by: Tom Lane Author: Michael Paquier Reviewed-by: Tom Lane Discussion: https://postgr.es/m/[email protected] Branch ------ REL9_3_STABLE Details ------- https://git.postgresql.org/pg/commitdiff/69599cc49e7cc48f180e49322aea00c1ec634388 Modified Files -------------- src/backend/access/transam/twophase.c | 1 + src/bin/pg_basebackup/receivelog.c | 2 ++ 2 files changed, 3 insertions(+)
