From 63596e1c4a5cdd5f1874e501b4600ef3f3c70a89 Mon Sep 17 00:00:00 2001 From: Wayne Davison Date: Mon, 15 Dec 2003 00:53:07 +0000 Subject: [PATCH] If we're the server and --files-from is "-", set remote_filesfrom_file to "-" as well (since the data is coming over the socket from the remote side). --- options.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/options.c b/options.c index b8c9f3da..85880caf 100644 --- a/options.c +++ b/options.c @@ -657,8 +657,11 @@ int parse_arguments(int *argc, const char ***argv, int frommain) usage(FERROR); exit_cleanup(RERR_SYNTAX); } - if (strcmp(files_from, "-") == 0) + if (strcmp(files_from, "-") == 0) { filesfrom_fd = 0; + if (am_server) + remote_filesfrom_file = "-"; + } else if ((colon = find_colon(files_from)) != 0) { if (am_server) { usage(FERROR); -- 2.34.1