projects
/
oweals
/
busybox.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0e76618
)
Use fnmatch() to compare excluded/included files
author
Glenn L McGrath
<bug1@ihug.co.nz>
Sat, 13 Oct 2001 06:21:32 +0000
(06:21 -0000)
committer
Glenn L McGrath
<bug1@ihug.co.nz>
Sat, 13 Oct 2001 06:21:32 +0000
(06:21 -0000)
libbb/unarchive.c
patch
|
blob
|
history
diff --git
a/libbb/unarchive.c
b/libbb/unarchive.c
index e23acfff233aed49b5b377155084eb7b92660f87..3bf79d646ad72582eccd03ae566b4361e7d9f303 100644
(file)
--- 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
if (extract_names != NULL) {
int found_flag = FALSE;
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;
break;
}