Content-Length: 258125 | pFad | http://github.com/postgrespro/postgres/commit/1155d8b8d52ed8705fd8386eaa64fb05c04170c6

9E Fix use of wrong variable in pg_receivewal's get_destination_dir(). · postgrespro/postgres@1155d8b · GitHub
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)








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/postgrespro/postgres/commit/1155d8b8d52ed8705fd8386eaa64fb05c04170c6

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy