X-Git-Url: https://mattmccutchen.net/rsync/rsync.git/blobdiff_plain/3f0211b63a6cdc4a2cecfd2a0dffeba172c86a47..b58f5e17ed35c68e10b88869d1e10d5378bd40e0:/main.c diff --git a/main.c b/main.c index 4c040b99..8ca164bd 100644 --- a/main.c +++ b/main.c @@ -63,6 +63,7 @@ extern int read_batch; extern int write_batch; extern int batch_fd; extern int filesfrom_fd; +extern int connect_timeout; extern pid_t cleanup_child_pid; extern struct stats stats; extern char *filesfrom_host; @@ -1264,6 +1265,12 @@ static int start_client(int argc, char *argv[]) exit_cleanup(RERR_SYNTAX); } + if (connect_timeout) { + rprintf(FERROR, "The --contimeout option may only be " + "used when connecting to an rsync daemon.\n"); + exit_cleanup(RERR_SYNTAX); + } + if (shell_machine) { p = strrchr(shell_machine,'@'); if (p) {