mirror of
https://github.com/RsyncProject/rsync.git
synced 2026-10-26 15:48:22 -04:00
Some argc-based actions in parse_arguments() shouldn't happen on
the server side.
This commit is contained in:
1 parent
f8949e7647
commit
2089375179
1 file changed
+2
-2
@@ -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) {
|
||||
|
||||
Reference in new issue
Block a user