pg_basebackup: Fix comparison handling of tablespace mappings on Windows

Peter Eisentraut <peter_e@gmx.net>

Commit: 4ba0ffaaee3f1e1c1103802c786c221a56a70497
Author: Peter Eisentraut <peter_e@gmx.net>
Date: 2017-11-02T01:44:55Z
Releases: 9.6.6
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