mirror of
https://github.com/EnterpriseDB/repmgr.git
synced 2026-03-27 17:06:29 +00:00
Fix variable name
This commit is contained in:
8
repmgr.c
8
repmgr.c
@@ -2029,22 +2029,22 @@ test_ssh_connection(char *host, char *remote_user)
|
|||||||
* found `true' because the target OS may differ from the source
|
* found `true' because the target OS may differ from the source
|
||||||
* OS
|
* OS
|
||||||
*/
|
*/
|
||||||
const char *truebin_pathes[] = {
|
const char *truebin_paths[] = {
|
||||||
"/bin/true",
|
"/bin/true",
|
||||||
"/usr/bin/true",
|
"/usr/bin/true",
|
||||||
NULL
|
NULL
|
||||||
};
|
};
|
||||||
|
|
||||||
/* Check if we have ssh connectivity to host before trying to rsync */
|
/* Check if we have ssh connectivity to host before trying to rsync */
|
||||||
for(i = 0; truebin_pathes[i] && r != 0; ++i)
|
for(i = 0; truebin_paths[i] && r != 0; ++i)
|
||||||
{
|
{
|
||||||
if (!remote_user[0])
|
if (!remote_user[0])
|
||||||
maxlen_snprintf(script, "ssh -o Batchmode=yes %s %s %s",
|
maxlen_snprintf(script, "ssh -o Batchmode=yes %s %s %s",
|
||||||
options.ssh_options, host, truebin_pathes[i]);
|
options.ssh_options, host, truebin_paths[i]);
|
||||||
else
|
else
|
||||||
maxlen_snprintf(script, "ssh -o Batchmode=yes %s %s -l %s %s",
|
maxlen_snprintf(script, "ssh -o Batchmode=yes %s %s -l %s %s",
|
||||||
options.ssh_options, host, remote_user,
|
options.ssh_options, host, remote_user,
|
||||||
truebin_pathes[i]);
|
truebin_paths[i]);
|
||||||
|
|
||||||
log_debug(_("command is: %s\n"), script);
|
log_debug(_("command is: %s\n"), script);
|
||||||
r = system(script);
|
r = system(script);
|
||||||
|
|||||||
Reference in New Issue
Block a user