pg_basebackup: Fix comparison handling of tablespace mappings on Windows

Peter Eisentraut <peter_e@gmx.net>

Commit: dd12b53078c37ea8731e9cb053bbeefe725ea47a
Author: Peter Eisentraut <peter_e@gmx.net>
Date: 2017-11-02T01:41:45Z
Releases: 10.1
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