]> git.ipfire.org Git - thirdparty/postgresql.git/commit
Fix error reporting after ioctl() call with pg_upgrade --clone
authorMichael Paquier <michael@paquier.xyz>
Mon, 1 Aug 2022 07:39:16 +0000 (16:39 +0900)
committerMichael Paquier <michael@paquier.xyz>
Mon, 1 Aug 2022 07:39:16 +0000 (16:39 +0900)
commit07abcd9ab712b843568e2f9a00006dd25797dc02
treeec68f0044fd29856cf1595cd9460348b515fcea2
parentfeae5c0cba8088fb85d9365348e59047d1c2919a
Fix error reporting after ioctl() call with pg_upgrade --clone

errno was not reported correctly after attempting to clone a file,
leading to incorrect error reports.  While scanning through the code, I
have not noticed any similar mistakes.

Error introduced in 3a769d8.

Author: Justin Pryzby
Discussion: https://postgr.es/m/20220731134135.GY15006@telsasoft.com
Backpatch-through: 12
src/bin/pg_upgrade/file.c