Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitf154be4

Browse files
committed
Canonicalize some other paths
1 parentb2464d9 commitf154be4

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)

[8]ページ先頭

©2009-2025 Movatter.jp