From: Wayne Davison Date: Sun, 21 Jun 2020 05:09:08 +0000 (-0700) Subject: We only need one capability marked with a "*". X-Git-Tag: v3.2.1pre1~18 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=e6cfebb578924fb1dd331aba95c7616e1f196f87;p=thirdparty%2Frsync.git We only need one capability marked with a "*". --- 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; } }