From: Glenn L McGrath Date: Sat, 13 Oct 2001 06:21:32 +0000 (-0000) Subject: Use fnmatch() to compare excluded/included files X-Git-Tag: 0_60_2~130 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=b5937d3eea72db7638060f0a612dfad1fc6b96cd;p=oweals%2Fbusybox.git Use fnmatch() to compare excluded/included files --- 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 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; }