synk

synchronize files between hosts
Log | Files | Refs | README | LICENSE

commit aa93f8110afe112cdb55cf72b6245b576ebdbc08
parent 7db446f73d41673b6503f5a58c50147d77e903ef
Author: Willy <willyatmailoodotorg>
Date:   Thu Sep  8 14:19:48 +0200

Pass the -p flag in server mode

Diffstat:
synk.c | 5+++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/synk.c b/synk.c @@ -389,8 +389,9 @@ spawnremote(struct peers_t *plist) SLIST_FOREACH(tmp, plist, entries) { if (IS_LOOPBACK(tmp)) continue; - snprintf(synk_cmd, _POSIX_ARG_MAX, "synk -s -h %s", - inet_ntoa(tmp->peer.sin_addr)); + snprintf(synk_cmd, _POSIX_ARG_MAX, "synk -s -h %s -p %d", + inet_ntoa(tmp->peer.sin_addr), + ntohs(tmp->peer.sin_port)); cmd = concat(2, ssh_cmd, (char *[]){ tmp->host, synk_cmd, NULL }); if (!fork()) { execvp(cmd[0], cmd);