Fixed the -r kluge sent for pre-2.6.4 --list-only support.
authorWayne Davison <wayned@samba.org>
Thu, 17 Mar 2005 00:52:33 +0000 (00:52 +0000)
committerWayne Davison <wayned@samba.org>
Thu, 17 Mar 2005 00:52:33 +0000 (00:52 +0000)
options.c

index a9f4c2d..b650057 100644 (file)
--- a/options.c
+++ b/options.c
@@ -1301,7 +1301,7 @@ void server_options(char **args,int *argc)
        /* 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;