X-Git-Url: https://mattmccutchen.net/rsync/rsync.git/blobdiff_plain/6a2456c501093327333b79af9a5fd9cf311702ea..ba22c9e219ccd45fea318e7759a7fe4a7c3703dc:/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) {