Changeset 1770 in MondoRescue for branches/stable/mindi-busybox/archival/libunarchive/filter_accept_reject_list.c
- Timestamp:
- Nov 6, 2007, 11:01:53 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/stable/mindi-busybox/archival/libunarchive/filter_accept_reject_list.c
r821 r1770 6 6 */ 7 7 8 #include <stdlib.h>8 #include "libbb.h" 9 9 #include "unarchive.h" 10 10 … … 15 15 { 16 16 const char *key = archive_handle->file_header->name; 17 const llist_t *reject_entry = find_list_entry (archive_handle->reject, key);17 const llist_t *reject_entry = find_list_entry2(archive_handle->reject, key); 18 18 const llist_t *accept_entry; 19 19 20 20 /* If the key is in a reject list fail */ 21 21 if (reject_entry) { 22 return (EXIT_FAILURE);22 return EXIT_FAILURE; 23 23 } 24 accept_entry = find_list_entry (archive_handle->accept, key);24 accept_entry = find_list_entry2(archive_handle->accept, key); 25 25 26 26 /* Fail if an accept list was specified and the key wasnt in there */ 27 27 if ((accept_entry == NULL) && archive_handle->accept) { 28 return (EXIT_FAILURE);28 return EXIT_FAILURE; 29 29 } 30 30 31 31 /* Accepted */ 32 return (EXIT_SUCCESS);32 return EXIT_SUCCESS; 33 33 }
Note:
See TracChangeset
for help on using the changeset viewer.