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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy