Skip to content

Commit

Permalink
Revert "Fix pattern matching crash on windows"
Browse files Browse the repository at this point in the history
This reverts commit b9ff539.
  • Loading branch information
Marco van Wieringen committed Nov 16, 2015
1 parent 5ddcfb6 commit 1450494
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/stored/bsr.c
Expand Up @@ -142,9 +142,7 @@ static int match_fileregex(BSR *bsr, DEV_RECORD *rec, JCR *jcr)
rec->maskedStream == STREAM_UNIX_ATTRIBUTES_EX) {
bsr->skip_file = false;
if (unpack_attributes_record(jcr, rec->Stream, rec->data, rec->data_len, bsr->attr)) {
const int nmatch = 30;
regmatch_t pmatch[nmatch];
if (regexec(bsr->fileregex_re, bsr->attr->fname, nmatch, pmatch, 0) == 0) {
if (regexec(bsr->fileregex_re, bsr->attr->fname, 0, NULL, 0) == 0) {
Dmsg2(dbglevel, "Matched pattern, fname=%s FI=%d\n",
bsr->attr->fname, rec->FileIndex);
} else {
Expand Down

0 comments on commit 1450494

Please sign in to comment.