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 <[email protected]> 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

+1-1
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)