If we're the server and --files-from is "-", set remote_filesfrom_file
authorWayne Davison <wayned@samba.org>
Mon, 15 Dec 2003 00:53:07 +0000 (00:53 +0000)
committerWayne Davison <wayned@samba.org>
Mon, 15 Dec 2003 00:53:07 +0000 (00:53 +0000)
to "-" as well (since the data is coming over the socket from the remote
side).

options.c

index b8c9f3d..85880ca 100644 (file)
--- 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);