1
0
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:
Konstantin Knizhnik 2019-04-25 19:53:35 +03:00
parent 66d33a188e
commit 982cf6ac63
2 changed files with 5 additions and 1 deletions

View File

@ -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);

View File

@ -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);
}