The branch, master has been updated
       via  e6cfebb5 We only need one capability marked with a "*".
      from  5d2379d9 Mention "asm" instead of "ASM".

https://git.samba.org/?p=rsync.git;a=shortlog;h=master


- Log -----------------------------------------------------------------
commit e6cfebb578924fb1dd331aba95c7616e1f196f87
Author: Wayne Davison <wa...@opencoder.net>
Date:   Sat Jun 20 22:09:08 2020 -0700

    We only need one capability marked with a "*".

-----------------------------------------------------------------------

Summary of changes:
 options.c | 12 +++++-------
 1 file changed, 5 insertions(+), 7 deletions(-)


Changeset truncated at 500 lines:

diff --git a/options.c b/options.c
index 2c1d7ce4..bb0e8638 100644
--- a/options.c
+++ b/options.c
@@ -640,19 +640,17 @@ static void print_capabilities(enum logcode f)
 #endif
                        "prealloc",
 
-       "*"
+       "*" /* All options after this point are hidden w/o -V -V */
 #ifndef HAVE_SIMD
                "no "
 #endif
                        "SIMD",
 
-       "*"
 #ifndef HAVE_ASM
                "no "
 #endif
                        "asm",
 
-       "*"
 #ifndef USE_OPENSSL
                "no "
 #endif
@@ -666,11 +664,11 @@ static void print_capabilities(enum logcode f)
                if (!cap)
                        break;
                if (*cap == '*') {
-                       if (version_opt_cnt < 2) {
+                       if (version_opt_cnt >= 2)
+                               capabilities[j]++;
+                       else
                                capabilities[j] = NULL;
-                               break;
-                       }
-                       capabilities[j]++;
+                       break;
                }
        }
 


-- 
The rsync repository.

_______________________________________________
rsync-cvs mailing list
rsync-cvs@lists.samba.org
https://lists.samba.org/mailman/listinfo/rsync-cvs

Reply via email to