pg_basebackup: Fix comparison handling of tablespace mappings on Windows

Peter Eisentraut <peter_e@gmx.net>

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