mirror of
https://git.postgresql.org/git/postgresql.git
synced 2025-02-23 19:39:53 +08:00
pg_basebackup: canonicalize old and new tablespace paths
This avoids problems with double-slash-specified paths. Patch by Ian Barwick
This commit is contained in:
parent
33cb8ff6aa
commit
f19d8f14c7
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user