pg_upgrade: properly detect file copy failure on Windows

Bruce Momjian <bruce@momjian.us>

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