X-Git-Url: https://mattmccutchen.net/rsync/rsync.git/blobdiff_plain/e10664c5e877bd75b58fe542024fcecf74e55091..9ec3828b031df2ca472efe61e950673949bec3ce:/main.c diff --git a/main.c b/main.c index 6d58dd8c..76692e1b 100644 --- a/main.c +++ b/main.c @@ -68,6 +68,7 @@ extern char *basis_dir[]; extern char *rsync_path; extern char *shell_cmd; extern char *batch_name; +extern char *password_file; extern char curr_dir[MAXPATHLEN]; extern struct filter_list_struct server_filter_list; @@ -1130,6 +1131,12 @@ static int start_client(int argc, char *argv[]) } } + if (password_file && !daemon_over_rsh) { + rprintf(FERROR, "The --password-file option may only be " + "used when accessing an rsync daemon.\n"); + exit_cleanup(RERR_SYNTAX); + } + if (shell_machine) { p = strrchr(shell_machine,'@'); if (p) {