From: Wayne Davison Date: Tue, 30 Mar 2004 02:08:07 +0000 (+0000) Subject: The --files-from option needs to allow a server-sender to sometimes X-Git-Url: https://mattmccutchen.net/rsync/rsync.git/commitdiff_plain/3e89da86dfb4a37aa00dcb55a1c9af46cff4b80f The --files-from option needs to allow a server-sender to sometimes have just 1 arg on the command-line. --- diff --git a/options.c b/options.c index 6deafd0c..1ee4ee75 100644 --- a/options.c +++ b/options.c @@ -720,7 +720,7 @@ int parse_arguments(int *argc, const char ***argv, int frommain) if (files_from) { char *colon; - if (*argc != 2) { + if (*argc != 2 && !(am_server && am_sender && *argc == 1)) { usage(FERROR); exit_cleanup(RERR_SYNTAX); }