mirror of
https://github.com/postgrespro/pg_probackup.git
synced 2025-02-13 14:58:35 +02:00
Fix error in forming remote path for Windows
This commit is contained in:
parent
66d33a188e
commit
982cf6ac63
@ -298,6 +298,7 @@ main(int argc, char *argv[])
|
||||
else if (strcmp(argv[1], "agent") == 0 && argc > 2)
|
||||
{
|
||||
remote_agent = argv[2];
|
||||
sleep(10);
|
||||
if (strcmp(remote_agent, PROGRAM_VERSION) != 0)
|
||||
{
|
||||
uint32 agent_version = parse_program_version(remote_agent);
|
||||
|
@ -137,9 +137,12 @@ bool launch_agent(void)
|
||||
probackup = sep + 1;
|
||||
}
|
||||
}
|
||||
#endif
|
||||
snprintf(cmd, sizeof(cmd), "%s\\%s agent %s",
|
||||
instance_config.remote.path, probackup, PROGRAM_VERSION);
|
||||
#else
|
||||
snprintf(cmd, sizeof(cmd), "%s/%s agent %s",
|
||||
instance_config.remote.path, probackup, PROGRAM_VERSION);
|
||||
#endif
|
||||
} else {
|
||||
snprintf(cmd, sizeof(cmd), "%s agent %s", pg_probackup, PROGRAM_VERSION);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user