tPass the -p flag in server mode - synk - synchronize files between hosts
 (DIR) Log
 (DIR) Files
 (DIR) Refs
 (DIR) README
 (DIR) LICENSE
       ---
 (DIR) commit aa93f8110afe112cdb55cf72b6245b576ebdbc08
 (DIR) parent 7db446f73d41673b6503f5a58c50147d77e903ef
 (HTM) Author: Willy <willyatmailoodotorg>
       Date:   Thu,  8 Sep 2016 14:19:48 +0200
       
       Pass the -p flag in server mode
       
       Diffstat:
         M synk.c                              |       5 +++--
       
       1 file changed, 3 insertions(+), 2 deletions(-)
       ---
 (DIR) diff --git a/synk.c b/synk.c
       t@@ -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);