Skip to content

Commit 6c7ab25

Browse files
committed
Canonicalize PGDATA path
1 parent 20de566 commit 6c7ab25

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/pg_probackup.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -395,6 +395,8 @@ main(int argc, char *argv[])
395395
* We have read pgdata path from command line or from configuration file.
396396
* Ensure that pgdata is an absolute path.
397397
*/
398+
if (instance_config.pgdata != NULL)
399+
canonicalize_path(instance_config.pgdata);
398400
if (instance_config.pgdata != NULL &&
399401
!is_absolute_path(instance_config.pgdata))
400402
elog(ERROR, "-D, --pgdata must be an absolute path");

0 commit comments

Comments
 (0)