busybox/archival/libunarchive/filter_accept_list.c

16 lines
327 B
C
Raw Normal View History

2002-09-25 08:17:48 +05:30
#include <fnmatch.h>
#include <stdlib.h>
#include "unarchive.h"
2002-10-19 11:49:22 +05:30
2002-09-25 08:17:48 +05:30
/*
* Accept names that are in the accept list
*/
extern char filter_accept_list(const llist_t *accept_list, const llist_t *reject_list, const char *key)
{
2002-10-19 11:49:22 +05:30
if (find_list_entry(accept_list, key)) {
return(EXIT_SUCCESS);
} else {
return(EXIT_FAILURE);
2002-09-25 08:17:48 +05:30
}
}