pg_basebackup: Fix comparison handling of tablespace mappings on Windows
authorPeter Eisentraut <peter_e@gmx.net>
Wed, 1 Nov 2017 14:20:05 +0000 (10:20 -0400)
committerPeter Eisentraut <peter_e@gmx.net>
Wed, 1 Nov 2017 14:20:05 +0000 (10:20 -0400)
commit067a2259fd2d7050ecf13a82a96e9a95bf8b3785
treef64fe6a4c1abe640edc4c9f4fde900e1beb5b6f7
parent63d6b97fd904232e7c7a8a2b9c52a3cc7eb47bef
pg_basebackup: Fix comparison handling of tablespace mappings on Windows

A candidate path needs to be canonicalized before being checked against
the mappings, because the mappings are also canonicalized.  This is
especially relevant on Windows

Reported-by: nb <nbedxp@gmail.com>
Author: Michael Paquier <michael.paquier@gmail.com>
Reviewed-by: Ashutosh Sharma <ashu.coek88@gmail.com>
src/bin/pg_basebackup/pg_basebackup.c