Content-Length: 259339 | pFad | http://github.com/postgrespro/postgres_cluster/commit/f19d8f14c776b0fa144227ecb2fc17e868a2cc5c

09 pg_basebackup: canonicalize old and new tablespace paths · postgrespro/postgres_cluster@f19d8f1 · GitHub
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

Lines changed: 3 additions & 0 deletions
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)








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/postgrespro/postgres_cluster/commit/f19d8f14c776b0fa144227ecb2fc17e868a2cc5c

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy