mirror of
https://github.com/EnterpriseDB/repmgr.git
synced 2026-03-23 07:06:30 +00:00
"recovery_file_path" is MAXPGPATH
This commit is contained in:
@@ -1116,7 +1116,7 @@ _do_create_recovery_conf(void)
|
||||
|
||||
/* check if recovery.conf exists */
|
||||
|
||||
maxpath_snprintf(recovery_file_path, "%s/%s", local_data_directory, RECOVERY_COMMAND_FILE);
|
||||
snprintf(recovery_file_path, MAXPGPATH, "%s/%s", local_data_directory, RECOVERY_COMMAND_FILE);
|
||||
|
||||
if (stat(recovery_file_path, &st) == -1)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user