Use fnmatch() to compare excluded/included files
authorGlenn L McGrath <bug1@ihug.co.nz>
Sat, 13 Oct 2001 06:21:32 +0000 (06:21 -0000)
committerGlenn L McGrath <bug1@ihug.co.nz>
Sat, 13 Oct 2001 06:21:32 +0000 (06:21 -0000)
libbb/unarchive.c

index e23acfff233aed49b5b377155084eb7b92660f87..3bf79d646ad72582eccd03ae566b4361e7d9f303 100644 (file)
@@ -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;
                                }