fix: SSH transport - log to stderr, use-after-free, systemd scope conflict

This commit is contained in:
2026-07-06 20:15:36 +02:00
parent 3b92501dc7
commit 372c559ef2
3 changed files with 11 additions and 8 deletions
+4
View File
@@ -307,6 +307,10 @@ int main(int argc, char *argv[]) {
if (is_remote_dest(config->receive_root_directory)) {
config->transport = TRANSPORT_SSH;
config->ssh_destination = str_dup(config->receive_root_directory);
char *colon = strchr(config->receive_root_directory, ':');
char *path = str_dup(colon + 1);
free(config->receive_root_directory);
config->receive_root_directory = path;
}
} else if (positional_count == 1) {
fprintf(stderr, "Error: missing destination argument\n");