mirror of
https://github.com/sheumann/hush.git
synced 2024-12-28 07:30:23 +00:00
Use fnmatch() to compare excluded/included files
This commit is contained in:
parent
0e766183ee
commit
b5937d3eea
@ -242,7 +242,7 @@ char *unarchive(FILE *src_stream, FILE *out_stream, file_header_t *(*get_headers
|
|||||||
if (extract_names != NULL) {
|
if (extract_names != NULL) {
|
||||||
int found_flag = FALSE;
|
int found_flag = FALSE;
|
||||||
for(i = 0; extract_names[i] != 0; i++) {
|
for(i = 0; extract_names[i] != 0; i++) {
|
||||||
if (strcmp(extract_names[i], file_entry->name) == 0) {
|
if (fnmatch(extract_names[i], file_entry->name, 0) == 0) {
|
||||||
found_flag = TRUE;
|
found_flag = TRUE;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user