v1-0001-Fix-a-typo-in-pg_receivewal.c-s-get_destination_d.patch
application/octet-stream
Filename: v1-0001-Fix-a-typo-in-pg_receivewal.c-s-get_destination_d.patch
Type: application/octet-stream
Part: 0
Patch
Format: format-patch
Series: patch v1-0001
Subject: Fix a typo in pg_receivewal.c's get_destination_dir()
| File | + | − |
|---|---|---|
| src/bin/pg_basebackup/pg_receivewal.c | 1 | 1 |
From 67a7bac7ed2e535932f72c216591b93879bba2fb Mon Sep 17 00:00:00 2001
From: Bharath Rupireddy <bharath.rupireddyforpostgres@gmail.com>
Date: Sat, 26 Feb 2022 16:31:49 +0000
Subject: [PATCH v1] Fix a typo in pg_receivewal.c's get_destination_dir()
---
src/bin/pg_basebackup/pg_receivewal.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/bin/pg_basebackup/pg_receivewal.c b/src/bin/pg_basebackup/pg_receivewal.c
index ccb215c398..ce661a9ce4 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);
}
--
2.25.1