--- matchpathcon.c 2005-10-05 15:33:38.000000000 +1000 +++ matchpathcon.c.new 2005-10-05 15:33:26.000000000 +1000 @@ -501,7 +501,7 @@ regcomp(&spec_arr[nspec].regex, anchored_regex, REG_EXTENDED | REG_NOSUB); - if (regerr < 0) { + if (regerr != 0) { myprintf("%s: line %d has invalid regex %s\n", path, lineno, anchored_regex); free(anchored_regex); return 0;