From: Bruce Momjian Date: Wed, 29 Apr 2015 00:12:10 +0000 (-0400) Subject: pg_basebackup: canonicalize old and new tablespace paths X-Git-Tag: REL9_5_ALPHA1~376 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=f19d8f14c776b0fa144227ecb2fc17e868a2cc5c;p=thirdparty%2Fpostgresql.git pg_basebackup: canonicalize old and new tablespace paths This avoids problems with double-slash-specified paths. Patch by Ian Barwick --- diff --git a/src/bin/pg_basebackup/pg_basebackup.c b/src/bin/pg_basebackup/pg_basebackup.c index f2b54bc0261..83bf2f5519f 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