From f19d8f14c776b0fa144227ecb2fc17e868a2cc5c Mon Sep 17 00:00:00 2001 From: Bruce Momjian Date: Tue, 28 Apr 2015 20:12:10 -0400 Subject: [PATCH] pg_basebackup: canonicalize old and new tablespace paths This avoids problems with double-slash-specified paths. Patch by Ian Barwick --- src/bin/pg_basebackup/pg_basebackup.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/bin/pg_basebackup/pg_basebackup.c b/src/bin/pg_basebackup/pg_basebackup.c index f2b54bc026..83bf2f5519 100644 --- a/src/bin/pg_basebackup/pg_basebackup.c +++ b/src/bin/pg_basebackup/pg_basebackup.c @@ -199,6 +199,9 @@ tablespace_list_append(const char *arg) exit(1); } + canonicalize_path(cell->old_dir); + canonicalize_path(cell->new_dir); + if (tablespace_dirs.tail) tablespace_dirs.tail->next = cell; else