diff options
author | Wayne Davison <wayned@samba.org> | 2008-03-30 08:05:50 -0700 |
---|---|---|
committer | Wayne Davison <wayned@samba.org> | 2008-03-30 08:05:50 -0700 |
commit | 20893751791a1bb7417b9fa72e91c909619bca6a (patch) | |
tree | 9fe25d5fca0481a57b68d5fffbbc3dd6120cbae8 | |
parent | f8949e7647748c5841babfd969ed837bed70fea6 (diff) | |
download | rsync-20893751791a1bb7417b9fa72e91c909619bca6a.tar.gz |
Some argc-based actions in parse_arguments() shouldn't happen on
the server side.
-rw-r--r-- | options.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -1275,7 +1275,7 @@ int parse_arguments(int *argc_p, const char ***argv_p) } } - if (human_readable && argc == 2) { + if (human_readable && argc == 2 && !am_server) { /* Allow the old meaning of 'h' (--help) on its own. */ usage(FINFO); exit_cleanup(0); @@ -1387,7 +1387,7 @@ int parse_arguments(int *argc_p, const char ***argv_p) xfer_dirs = 1; } - if (argc < 2 && !read_batch) + if (argc < 2 && !read_batch && !am_server) list_only |= 1; if (xfer_dirs >= 4) { |