]> Dogcows Code - chaz/tar/blobdiff - src/names.c
Take regexps into account
[chaz/tar] / src / names.c
index 04719d081c8e0151e7f74f21f0199a7da2553d1d..46581e0738f5228ed542a8af4ee29e983766f44e 100644 (file)
@@ -595,6 +595,17 @@ name_match (const char *path)
     }
 }
 
+/* Returns true if all names from the namelist were processed */
+bool
+names_done ()
+{
+  struct name const *cursor;
+  for (cursor = namelist; cursor; cursor = cursor->next)
+    if (cursor->regexp || (!cursor->found && !cursor->fake))
+      return false;
+  return true;
+}
+
 /* Print the names of things in the namelist that were not matched.  */
 void
 names_notfound (void)
This page took 0.019839 seconds and 4 git commands to generate.