mirror of
https://github.com/EnterpriseDB/repmgr.git
synced 2026-03-27 17:06:29 +00:00
There was a segfault because of the strcpy (seems rather obvious now)
Reported by: Cedric Villemain Fixed by me
This commit is contained in:
2
repmgr.c
2
repmgr.c
@@ -240,7 +240,7 @@ do_standby_clone(void)
|
|||||||
const char *last_wal_segment = NULL;
|
const char *last_wal_segment = NULL;
|
||||||
|
|
||||||
if (dest_dir == NULL)
|
if (dest_dir == NULL)
|
||||||
strcpy(dest_dir, ".");
|
dest_dir = ".";
|
||||||
|
|
||||||
/* Check this directory could be used as a PGDATA dir */
|
/* Check this directory could be used as a PGDATA dir */
|
||||||
switch (check_dir(dest_dir))
|
switch (check_dir(dest_dir))
|
||||||
|
|||||||
Reference in New Issue
Block a user