Skip to content

Commit f154be4

Browse files
committed
Canonicalize some other paths
1 parent b2464d9 commit f154be4

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

src/archive.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,8 @@ do_archive_push(char *wal_file_path, char *wal_file_name, bool overwrite)
3939
if (wal_file_path == NULL)
4040
elog(ERROR, "required parameter not specified: --wal-file-path %%p");
4141

42+
canonicalize_path(wal_file_path);
43+
4244
if (!getcwd(current_dir, sizeof(current_dir)))
4345
elog(ERROR, "getcwd() error");
4446

@@ -97,6 +99,8 @@ do_archive_get(char *wal_file_path, char *wal_file_name)
9799
if (wal_file_path == NULL)
98100
elog(ERROR, "required parameter not specified: --wal-file-path %%p");
99101

102+
canonicalize_path(wal_file_path);
103+
100104
if (!getcwd(current_dir, sizeof(current_dir)))
101105
elog(ERROR, "getcwd() error");
102106

src/utils/logger.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,9 @@ init_logger(const char *root_path, LoggerConfig *config)
8484
root_path, LOG_DIRECTORY_DEFAULT);
8585
}
8686

87+
if (config->log_directory != NULL)
88+
canonicalize_path(config->log_directory);
89+
8790
logger_config = *config;
8891
}
8992

0 commit comments

Comments
 (0)