Up to this commit, --blacklist-contains would blacklist any entry that
matches any <text>.
This behavior has been changed to only blacklist any entry that contains
all <text> entries specified by multiple --blacklist-contains (or just 1
if there was only 1 flag).
TODO:
- white/black-lists for test/extract for file format version 1 and
2.
- white/black-lists for create/test/extract for file format version
0.
}
if (b_contains) {
+ uint_fast8_t contains_all = 1;
for (const SDArchiverLLNode *node = b_contains->head->next;
node != b_contains->tail;
node = node->next) {
if (node->data) {
- if (simple_archiver_helper_string_contains(
+ if (!simple_archiver_helper_string_contains(
cstring, node->data, case_i)) {
- return 0;
+ contains_all = 0;
+ break;
}
}
}
+
+ if (contains_all) {
+ return 0;
+ }
}
if (b_begins) {
for (const SDArchiverLLNode *node = b_begins->head->next;