mirror of
https://git.savannah.gnu.org/git/tar.git
synced 2026-04-29 20:57:03 +00:00
(names_done): New function.
This commit is contained in:
@@ -560,6 +560,7 @@ void name_close (void);
|
||||
void name_gather (void);
|
||||
struct name *addname (char const *, int);
|
||||
int name_match (const char *);
|
||||
bool names_done (void);
|
||||
void names_notfound (void);
|
||||
void collect_and_sort_names (void);
|
||||
struct name *name_scan (const char *);
|
||||
@@ -581,6 +582,7 @@ bool contains_dot_dot (char const *);
|
||||
int confirm (const char *, const char *);
|
||||
void request_stdin (const char *);
|
||||
void destroy_stat (struct tar_stat_info *);
|
||||
bool all_names_found (void);
|
||||
|
||||
/* Module update.c. */
|
||||
|
||||
|
||||
11
src/names.c
11
src/names.c
@@ -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->found && !cursor->fake)
|
||||
return false;
|
||||
return true;
|
||||
}
|
||||
|
||||
/* Print the names of things in the namelist that were not matched. */
|
||||
void
|
||||
names_notfound (void)
|
||||
|
||||
Reference in New Issue
Block a user