Synopsis: Prior to the 2.6.4pre versions, issuing 'rsync rsync://host/module/' behaved effectively as 'ls -l'. I've toyed with various options in an attempt to get an 'ls -l' style output, but to no avail. As I have a small handful of scripts that rely on this no-longer-functioning functionality, this could be considered a Bad Thing(TM). Following is an example of what I've described. # rsync 2.6.3 on both lithium & helium [erik@lithium ~]$ rsync-2.6.3 rsync://helium/slackware/ <snip motd> drwxr-xr-x 4096 2005/03/10 00:56:46 . drwxr-xr-x 4096 2004/10/31 23:34:38 slackware-10.0 drwxr-xr-x 4096 2005/02/03 22:59:40 slackware-10.1 drwxr-xr-x 4096 2005/02/06 21:11:35 slackware-10.1-iso drwxr-xr-x 4096 2004/10/31 23:27:51 slackware-8.1 drwxr-xr-x 4096 2004/10/31 23:30:55 slackware-9.0 drwxr-xr-x 4096 2004/10/31 23:32:46 slackware-9.1 drwxr-xr-x 4096 2005/03/10 00:24:42 slackware-current # log snippet from helium Mar 16 19:07:46 helium rsyncd[8959]: rsync on slackware/ from lithium (192.168.1.3) Mar 16 19:07:46 helium rsyncd[8959]: wrote 572 bytes read 77 bytes total size 0 # rsync 2.6.4pre3 on lithium, 2.6.3 on helium [erik@lithium ~]$ rsync-2.6.4pre3 rsync://helium/slackware/ <snip motd> skipping directory /. client: nothing to do: perhaps you need to specify some filenames or the --recursive option? # log snippet from helium Mar 16 19:09:56 helium rsyncd[8971]: rsync on slackware/ from lithium (192.168.1.3) Mar 16 19:09:56 helium rsyncd[8971]: skipping directory /. Erik
On Wed, Mar 16, 2005 at 07:29:39PM -0500, Erik Jan Tromp wrote:> [erik@lithium ~]$ rsync-2.6.4pre3 rsync://helium/slackware/ > <snip motd> > skipping directory /.This is a result of a 1-character typo in options.c: --- options.c 14 Mar 2005 17:30:13 -0000 1.253 +++ options.c 17 Mar 2005 00:50:22 -0000 @@ -1301,7 +1301,7 @@ void server_options(char **args,int *arg /* This is a complete hack - blame Rusty. FIXME! * This hack is only needed for older rsync versions that * don't understand the --list-only option. */ - if (list_only == 1 && recurse) + if (list_only == 1 && !recurse) argstr[x++] = 'r'; argstr[x] = 0; I've checked this in. Thanks for the report! ..wayne..