From: Wayne Davison Date: Sun, 14 Aug 2022 19:27:25 +0000 (-0700) Subject: Fix another dot-dir implied arg issue. X-Git-Tag: v3.2.5^0 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0e10163a9d984a8858f7d83b5c7b46889536aa96;p=thirdparty%2Frsync.git Fix another dot-dir implied arg issue. --- diff --git a/exclude.c b/exclude.c index e5774420..adc82e2a 100644 --- a/exclude.c +++ b/exclude.c @@ -399,9 +399,9 @@ void add_implied_include(const char *arg, int skip_daemon_module) arg = cp + 3; } else if ((cp = strrchr(arg, '/')) != NULL) { arg = cp + 1; - if (*arg == '.' && arg[1] == '\0') - arg++; } + if (*arg == '.' && arg[1] == '\0') + arg++; arg_len = strlen(arg); if (arg_len) { if (strpbrk(arg, "*[?")) {