mirror of
https://github.com/postgres/postgres.git
synced 2025-04-27 22:56:53 +03: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);
|
exit(1);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
canonicalize_path(cell->old_dir);
|
||||||
|
canonicalize_path(cell->new_dir);
|
||||||
|
|
||||||
if (tablespace_dirs.tail)
|
if (tablespace_dirs.tail)
|
||||||
tablespace_dirs.tail->next = cell;
|
tablespace_dirs.tail->next = cell;
|
||||||
else
|
else
|
||||||
|
Loading…
x
Reference in New Issue
Block a user