pg_upgrade: properly detect file copy failure on Windows
authorBruce Momjian
Sat, 14 Nov 2015 16:47:11 +0000 (11:47 -0500)
committerBruce Momjian
Sat, 14 Nov 2015 16:47:11 +0000 (11:47 -0500)
commit87cdfeb18ae0fe298b6f405718cbe97eaed190d3
tree52dd582acfe0dc3b4a6d3f2cef0799245dbc83e6
parent40879a92b90cdd46f74588a2edb024a3c869d932
pg_upgrade:  properly detect file copy failure on Windows

Previously, file copy failures were ignored on Windows due to an
incorrect return value check.

Report by Manu Joye

Backpatch through 9.1
contrib/pg_upgrade/file.c
contrib/pg_upgrade/pg_upgrade.h