Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit f19d8f1

Browse files
committed
pg_basebackup: canonicalize old and new tablespace paths
This avoids problems with double-slash-specified paths. Patch by Ian Barwick
1 parent 33cb8ff commit f19d8f1

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/bin/pg_basebackup/pg_basebackup.c

+3
Original file line numberDiff line numberDiff line change
@@ -199,6 +199,9 @@ tablespace_list_append(const char *arg)
199199
exit(1);
200200
}
201201

202+
canonicalize_path(cell->old_dir);
203+
canonicalize_path(cell->new_dir);
204+
202205
if (tablespace_dirs.tail)
203206
tablespace_dirs.tail->next = cell;
204207
else

0 commit comments

Comments
 (0)