summaryrefslogtreecommitdiff
path: root/options.c
diff options
context:
space:
mode:
authorWayne Davison <wayned@samba.org>2004-03-30 02:08:07 +0000
committerWayne Davison <wayned@samba.org>2004-03-30 02:08:07 +0000
commit3e89da86dfb4a37aa00dcb55a1c9af46cff4b80f (patch)
treeebbd8b3e40d42cd40f69e3a97044f129d047fa05 /options.c
parentf5450e791da9495f8af4c2e27886f037db657b4b (diff)
downloadrsync-3e89da86dfb4a37aa00dcb55a1c9af46cff4b80f.tar.gz
The --files-from option needs to allow a server-sender to sometimes
have just 1 arg on the command-line.
Diffstat (limited to 'options.c')
-rw-r--r--options.c2
1 files changed, 1 insertions, 1 deletions
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);
}