diff options
author | Andres Freund <andres@anarazel.de> | 2022-02-26 16:43:54 -0800 |
---|---|---|
committer | Andres Freund <andres@anarazel.de> | 2022-02-26 16:43:54 -0800 |
commit | 1155d8b8d52ed8705fd8386eaa64fb05c04170c6 (patch) | |
tree | 8796f8a668fd54d2baf9969fa90372ad8ac8f181 /src | |
parent | d33aeefd9b7c8c76f584432717dc944505565e52 (diff) | |
download | postgresql-1155d8b8d52ed8705fd8386eaa64fb05c04170c6.tar.gz postgresql-1155d8b8d52ed8705fd8386eaa64fb05c04170c6.zip |
Fix use of wrong variable in pg_receivewal's get_destination_dir().
The global variable wrongly used is always the one passed to
get_destination_dir(), so there currently are no negative consequences.
Author: Bharath Rupireddy <bharath.rupireddyforpostgres@gmail.com>
Discussion: https://postgr.es/m/CALj2ACUT0C2LQwhyLXTQdj8T9SxZa5j7cmu-UOz0cZ8_D5edjg@mail.gmail.com
Diffstat (limited to 'src')
-rw-r--r-- | src/bin/pg_basebackup/pg_receivewal.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/bin/pg_basebackup/pg_receivewal.c b/src/bin/pg_basebackup/pg_receivewal.c index ccb215c398c..ce661a9ce45 100644 --- a/src/bin/pg_basebackup/pg_receivewal.c +++ b/src/bin/pg_basebackup/pg_receivewal.c @@ -240,7 +240,7 @@ get_destination_dir(char *dest_folder) dir = opendir(dest_folder); if (dir == NULL) { - pg_log_error("could not open directory \"%s\": %m", basedir); + pg_log_error("could not open directory \"%s\": %m", dest_folder); exit(1); } |