aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGlenn L McGrath <bug1@ihug.co.nz>2001-10-13 06:21:32 +0000
committerGlenn L McGrath <bug1@ihug.co.nz>2001-10-13 06:21:32 +0000
commitb5937d3eea72db7638060f0a612dfad1fc6b96cd (patch)
treeaa20e8c6ac0d43855dfdd00c9bcf64f684eb2432
parent0e766183ee0d9108c4f803a5e66372fc9c2c119d (diff)
downloadbusybox-w32-b5937d3eea72db7638060f0a612dfad1fc6b96cd.tar.gz
busybox-w32-b5937d3eea72db7638060f0a612dfad1fc6b96cd.tar.bz2
busybox-w32-b5937d3eea72db7638060f0a612dfad1fc6b96cd.zip
Use fnmatch() to compare excluded/included files
-rw-r--r--libbb/unarchive.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libbb/unarchive.c b/libbb/unarchive.c
index e23acfff2..3bf79d646 100644
--- a/libbb/unarchive.c
+++ b/libbb/unarchive.c
@@ -242,7 +242,7 @@ char *unarchive(FILE *src_stream, FILE *out_stream, file_header_t *(*get_headers
242 if (extract_names != NULL) { 242 if (extract_names != NULL) {
243 int found_flag = FALSE; 243 int found_flag = FALSE;
244 for(i = 0; extract_names[i] != 0; i++) { 244 for(i = 0; extract_names[i] != 0; i++) {
245 if (strcmp(extract_names[i], file_entry->name) == 0) { 245 if (fnmatch(extract_names[i], file_entry->name, 0) == 0) {
246 found_flag = TRUE; 246 found_flag = TRUE;
247 break; 247 break;
248 } 248 }