--files-from troubles on W2K

Wes Bigelow wesbigelow at hotmail.com
Sat Jul 19 12:46:17 EST 2003

When using --files-from on the receiver side with the following command line
(running the latest version of rsync from cvs as of 7/16/2003, rsync version 
2.5.6  protocol version 27 on W2K)

C:\rsync>rsync.exe -a --files-from=/cygdrive/C/rsync/filelist 
2 /cygdrive/C/test1

I get the following error on the receiver:

rsync: connection unexpectedly closed (24 bytes read so far)
rsync error: error in rsync protocol data stream (code 12) at io.c(189)

In the server logs I get the more interesting error:

2003/07/18  [1300] rsync error: syntax or usage error (code 1) at 
2003/07/18  [2136] rsync error: received SIGUSR1 or SIGINT (code 20) at 

I dug deeper and found that it was exiting at around line 653 in options.c

In the statement:

if (*argc != 2)

*argc is 1 and so the program exits.  FYI, (*argv)[0] is a "."

Any education as to what's going on is appreciated...

The new MSN 8: advanced junk mail protection and 2 months FREE*  

More information about the rsync mailing list