pg_upgrade: properly detect file copy failure on Windows

Bruce Momjian <bruce@momjian.us>

Commit: b4c4220ede3048662c746123b8af2a9101a1b313
Author: Bruce Momjian <bruce@momjian.us>
Date: 2015-11-14T16:47:11Z
Releases: 9.2.15
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

Files

PathChange+/−
contrib/pg_upgrade/file.c modified +5 −1
contrib/pg_upgrade/pg_upgrade.h modified +0 −2