Skip to content

Commit 1155d8b

Browse files
committed
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
1 parent d33aeef commit 1155d8b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/bin/pg_basebackup/pg_receivewal.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -240,7 +240,7 @@ get_destination_dir(char *dest_folder)
240240
dir = opendir(dest_folder);
241241
if (dir == NULL)
242242
{
243-
pg_log_error("could not open directory \"%s\": %m", basedir);
243+
pg_log_error("could not open directory \"%s\": %m", dest_folder);
244244
exit(1);
245245
}
246246

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy