pg_upgrade: properly detect file copy failure on Windows
authorBruce Momjian <bruce@momjian.us>
Sat, 14 Nov 2015 16:47:11 +0000 (11:47 -0500)
committerBruce Momjian <bruce@momjian.us>
Sat, 14 Nov 2015 16:47:11 +0000 (11:47 -0500)
commita75efb483649a194d4578404ca294735829ff127
tree6b6a34b373dcf31dc5ccf821f0a5b7ecfb740b13
parentdb6e8e1624a8f0357373450136c850f2b6e7fc8a
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