synk

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

commit 8b8a17a79f10982e0c838b3dff5c91aef3fe936c
parent a456dce1c91772af689a17850b8224705bd34719
Author: Willy <willyatmailoodotorg>
Date:   Fri Sep  9 08:04:15 +0200

Parse config in client mode only

Diffstat:
synk.c | 12++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/synk.c b/synk.c @@ -554,14 +554,14 @@ main(int argc, char *argv[]) case 'v': verbose++; break; }ARGEND; - if (SLIST_EMPTY(&plist)) { - log(LOG_DEBUG, "+ using config %s\n", config); - parseconf(&plist, config); - } - - addpeer(&plist, "localhost", DEFPORT); switch(mode) { case SYNK_CLIENT: + if (SLIST_EMPTY(&plist)) { + log(LOG_DEBUG, "+ using config %s\n", config); + parseconf(&plist, config); + } + + addpeer(&plist, "localhost", DEFPORT); while ((fn = *(argv++)) != NULL) { spawnremote(&plist); syncfile(&plist, fn);