Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit b2464d9

Browse files
committed
Canonicalize external mapping paths
1 parent 1b02f87 commit b2464d9

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/dir.c

+2
Original file line numberDiff line numberDiff line change
@@ -988,6 +988,8 @@ opt_path_map(ConfigOption *opt, const char *arg, TablespaceList *list,
988988
if (!*cell->old_dir || !*cell->new_dir)
989989
elog(ERROR, "invalid %s mapping format \"%s\", "
990990
"must be \"OLDDIR=NEWDIR\"", type, arg);
991+
canonicalize_path(cell->old_dir);
992+
canonicalize_path(cell->new_dir);
991993

992994
/*
993995
* This check isn't absolutely necessary. But all tablespaces are created

0 commit comments

Comments
 (0)