postgres.git / summary / log / commit / refs

commit    f19d8f14c776b0fa144227ecb2fc17e868a2cc5c
Author:   Bruce Momjian <bruce@momjian.us>
Date:     Wed Apr 29 00:12:10 2015 +0000

    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 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 [parent: 33cb8ff6aa11]