--from-files broken with remote sources

Wayne Davison wayned at samba.org
Mon Mar 29 23:45:18 GMT 2004


On Mon, Mar 29, 2004 at 03:51:18PM -0500, Andrew Pimlott wrote:
>     rsync -v --files-from files andrew at pimlott.net: .
> and got an error from the remote rsync.

You can work around the problem by specifying a directory after the
colon ('.' would work).

This patch should fix things:

--- options.c	27 Mar 2004 19:42:13 -0000	1.141
+++ options.c	29 Mar 2004 23:42:37 -0000
@@ -720,7 +720,7 @@ int parse_arguments(int *argc, const cha
 
 	if (files_from) {
 		char *colon;
-		if (*argc != 2) {
+		if (*argc != 2 && (!am_server || !am_sender || *argc != 1)) {
 			usage(FERROR);
 			exit_cleanup(RERR_SYNTAX);
 		}

..wayne..


More information about the rsync mailing list