+
+ STRV_FOREACH(p, arg_dot_from_patterns) {
+ match_found = false;
+ if (fnmatch(*p, name, 0) == 0) {
+ match_found = true;
+ break;
+ }
+ }
+ if (!match_found)
+ continue;
+
+ STRV_FOREACH(p, arg_dot_to_patterns) {
+ match_found = false;
+ if (fnmatch(*p, s, 0) == 0) {
+ match_found = true;
+ break;
+ }
+ }
+ if (!match_found)
+ continue;
+
+ STRV_FOREACH(p, patterns) {
+ match_found = false;
+ if (fnmatch(*p, name, 0) == 0 || fnmatch(*p, s, 0) == 0) {
+ match_found = true;
+ break;
+ }
+ }
+ if (!match_found)
+ continue;
+