pg_basebackup: Fix comparison handling of tablespace mappings on Windows

Peter Eisentraut <peter_e@gmx.net>

Commit: 067a2259fd2d7050ecf13a82a96e9a95bf8b3785
Author: Peter Eisentraut <peter_e@gmx.net>
Date: 2017-11-01T14:20:05Z
Releases: 11.0
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>

Files

PathChange+/−
src/bin/pg_basebackup/pg_basebackup.c modified +11 −1